aboutsummaryrefslogtreecommitdiff
path: root/networking/Config.src
diff options
context:
space:
mode:
authorCurt Brune <curt@cumulusnetworks.com>2015-10-14 12:53:47 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2015-10-14 12:53:47 +0200
commit69934701fd1b18327b3a779cb292a728834b2d0d (patch)
treecdae967517ee981a7e7f07bddfec7047c1f51221 /networking/Config.src
parent7b85ec30b5941f0b90c48a990f2f6840aca87bce (diff)
downloadbusybox-w32-69934701fd1b18327b3a779cb292a728834b2d0d.tar.gz
busybox-w32-69934701fd1b18327b3a779cb292a728834b2d0d.tar.bz2
busybox-w32-69934701fd1b18327b3a779cb292a728834b2d0d.zip
networking: add 'ip neigh' command
This patch ports the 'ip neigh' command, originally written by Alexey Kuznetsov, <kuznet@ms2.inr.ac.ru>, to busybox. The base of the port is the version of iproute that shipped with Debian Squeeze, taken from: http://http.debian.net/debian/pool/main/i/iproute/iproute_20100519.orig.tar.gz This patch has actively been used by the Open Network Install Environment (ONIE) project for over 3 years without incident. function old new delta print_neigh - 933 +933 ipneigh_list_or_flush - 742 +742 get_hz - 109 +109 do_ipneigh - 62 +62 do_iproute 2112 2153 +41 packed_usage 30647 30667 +20 ipneigh_main - 14 +14 static.ip_neigh_commands - 12 +12 static.nuds - 9 +9 static.ip_func_ptrs 32 36 +4 print_route 1858 1727 -131 ------------------------------------------------------------------------------ (add/remove: 8/0 grow/shrink: 3/1 up/down: 1946/-131) Total: 1815 bytes Signed-off-by: Curt Brune <curt@cumulusnetworks.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/Config.src')
-rw-r--r--networking/Config.src13
1 files changed, 13 insertions, 0 deletions
diff --git a/networking/Config.src b/networking/Config.src
index 43ccbf385..8c7417f86 100644
--- a/networking/Config.src
+++ b/networking/Config.src
@@ -554,6 +554,13 @@ config FEATURE_IP_RULE
554 help 554 help
555 Add support for rule commands to "ip". 555 Add support for rule commands to "ip".
556 556
557config FEATURE_IP_NEIGH
558 bool "ip neighbor"
559 default y
560 depends on IP
561 help
562 Add support for neighbor commands to "ip".
563
557config FEATURE_IP_SHORT_FORMS 564config FEATURE_IP_SHORT_FORMS
558 bool "Support short forms of ip commands" 565 bool "Support short forms of ip commands"
559 default y 566 default y
@@ -565,6 +572,7 @@ config FEATURE_IP_SHORT_FORMS
565 ip route -> iproute 572 ip route -> iproute
566 ip tunnel -> iptunnel 573 ip tunnel -> iptunnel
567 ip rule -> iprule 574 ip rule -> iprule
575 ip neigh -> ipneigh
568 576
569 Say N unless you desparately need the short form of the ip 577 Say N unless you desparately need the short form of the ip
570 object commands. 578 object commands.
@@ -604,6 +612,11 @@ config IPRULE
604 default y 612 default y
605 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_RULE 613 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_RULE
606 614
615config IPNEIGH
616 bool
617 default y
618 depends on FEATURE_IP_SHORT_FORMS && FEATURE_IP_NEIGH
619
607config IPCALC 620config IPCALC
608 bool "ipcalc" 621 bool "ipcalc"
609 default y 622 default y