summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer2010-05-25 16:57:08 +0200
committerBernhard Reutner-Fischer2010-05-25 18:48:33 +0200
commitab0e412937a358fe4f7110d4222e12b14f320ad0 (patch)
tree6fafc7161754bb9fba226d324e4d06fd1be573dc /networking
parentd148e484db143c801f806c4e055a5c8b80d0c5ee (diff)
downloadbusybox-ab0e412937a358fe4f7110d4222e12b14f320ad0.zip
busybox-ab0e412937a358fe4f7110d4222e12b14f320ad0.tar.gz
ip link: add qlen
qlen had a variable but was not handled.. function old new delta do_iplink 1113 1261 +148 .rodata 135225 135249 +24 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/0 up/down: 172/0) Total: 172 bytes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/libiproute/iplink.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/networking/libiproute/iplink.c b/networking/libiproute/iplink.c
index 583a280..8bf8927 100644
--- a/networking/libiproute/iplink.c
+++ b/networking/libiproute/iplink.c
@@ -171,9 +171,9 @@ static int do_set(char **argv)
char *newname = NULL;
int htype, halen;
static const char keywords[] ALIGN1 =
- "up\0""down\0""name\0""mtu\0""multicast\0"
+ "up\0""down\0""name\0""mtu\0""qlen\0""multicast\0"
"arp\0""address\0""dev\0";
- enum { ARG_up = 0, ARG_down, ARG_name, ARG_mtu, ARG_multicast,
+ enum { ARG_up = 0, ARG_down, ARG_name, ARG_mtu, ARG_qlen, ARG_multicast,
ARG_arp, ARG_addr, ARG_dev };
static const char str_on_off[] ALIGN1 = "on\0""off\0";
enum { PARM_on = 0, PARM_off };
@@ -197,6 +197,11 @@ static int do_set(char **argv)
if (mtu != -1)
duparg("mtu", *argv);
mtu = get_unsigned(*argv, "mtu");
+ } else if (key == ARG_qlen) {
+ NEXT_ARG();
+ if (qlen != -1)
+ duparg("qlen", *argv);
+ qlen = get_unsigned(*argv, "qlen");
} else if (key == ARG_addr) {
NEXT_ARG();
newaddr = *argv;