aboutsummaryrefslogtreecommitdiff
path: root/networking/ip.c
diff options
context:
space:
mode:
authorJan Luebbe <jluebbe@debian.org>2018-02-14 14:05:27 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-20 19:43:32 +0100
commite789c3bea18181723c4ae7d761ec30926d182cfb (patch)
treea1d5abfc03412982db4d538c0ad424a46c91f4ac /networking/ip.c
parent79cda9522ad390f1bdb7ba1025b1c81bbd1613e6 (diff)
downloadbusybox-e789c3bea18181723c4ae7d761ec30926d182cfb.tar.gz
iplink: implement support for selecting a master interface
Attaching an interface to a VRF is done by setting the interface's master. Besides VRF, this can also be used for bridges. function old new delta set_master - 142 +142 do_iplink 1262 1357 +95 packed_usage 32546 32539 -7 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 1/1 up/down: 237/-7) Total: 230 bytes Signed-off-by: Jan Luebbe <jluebbe@debian.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/ip.c')
-rw-r--r--networking/ip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/networking/ip.c b/networking/ip.c
index 665f9bcce..accf90759 100644
--- a/networking/ip.c
+++ b/networking/ip.c
@@ -156,7 +156,8 @@
//--------------123456789.123456789.123456789.123456789.123456789.123456789.123456789.123....79
//usage:#define iplink_trivial_usage
//usage: /*Usage:iplink*/"set IFACE [up|down] [arp on|off] [multicast on|off]\n"
-//usage: " [promisc on|off] [mtu NUM] [name NAME] [qlen NUM] [address MAC]"
+//usage: " [promisc on|off] [mtu NUM] [name NAME] [qlen NUM] [address MAC]\n"
+//usage: " [master IFACE | nomaster]\n"
// * short help shows only "set" command, long help continues (with just one "\n")
// * and shows all other commands:
//usage:#define iplink_full_usage "\n"