Skip to content

Commit

Permalink
ip link: add qlen
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
aldot committed May 25, 2010
1 parent d148e48 commit ab0e412
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions networking/libiproute/iplink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand All @@ -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;
Expand Down

0 comments on commit ab0e412

Please sign in to comment.