aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ip_parse_common_args.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ip: code shrinkDenys Vlasenko2023-04-231-0/+77
| | | | | | | function old new delta ipaddr_list_or_flush 1089 1079 -10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace and comment format fixes, no code changesDenys Vlasenko2017-10-051-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libiproute: rename invarg(a,b) to invarg_1_to_2(a,b)Denys Vlasenko2015-10-141-1/+1
| | | | | | | | | | | | | | invarg(a,b) - "invalid argument", but how a and b enter the message? invarg_1_to_2(a,b) is somewhat easier to read: "invalid argument 'a' to 'b'" Audit of usage revealed a number of bad uses, with too long messages. text data bss dec hex filename 938848 932 17448 957228 e9b2c busybox_old 938788 932 17448 957168 e9af0 busybox_unstripped Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* whitespace cleanupDenys Vlasenko2010-10-291-9/+6
| | | | Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* libiproute: code shrink by adding FAST_FUNCDenys Vlasenko2010-07-241-1/+1
| | | | | | | | | | | | | | | | | function old new delta ipaddr_list_or_flush 1282 1293 +11 ip_parse_common_args 153 151 -2 ip_main 53 50 -3 ip_do 19 15 -4 do_iptunnel 985 980 -5 do_iprule 982 977 -5 do_iplink 1637 1631 -6 do_iproute 2105 2098 -7 do_ipaddr 1406 1398 -8 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/8 up/down: 11/-40) Total: -29 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libiproute: fix option parsing, so that "ip -o link" works again.Denis Vlasenko2008-05-311-1/+1
| | | | | closes bug 3524
* ip: stop propagating argc; optimize ip_parse_common_argsDenis Vlasenko2007-11-181-44/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta find_pair 167 187 +20 static.families - 17 +17 die_must_be_on_off - 11 +11 ... on_off 33 22 -11 do_ipaddr 103 90 -13 do_iptunnel 1001 986 -15 iproute_list_or_flush 1237 1217 -20 static.ip_common_commands 43 22 -21 do_iproute 2217 2193 -24 parse_args 1444 1414 -30 ip_do 47 16 -31 do_iprule 994 963 -31 ip_main 153 113 -40 ipaddr_modify 1357 1305 -52 ipaddr_list_or_flush 2543 2490 -53 ip_parse_common_args 294 159 -135 ------------------------------------------------------------------------------ (add/remove: 4/1 grow/shrink: 4/24 up/down: 85/-563) Total: -478 bytes text data bss dec hex filename 775561 966 9236 785763 bfd63 busybox_old 775073 962 9236 785271 bfb77 busybox_unstripped
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-1/+1
| | | | | | | | | trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
* Replace index_in_[sub]str_array with index_in_[sub]strings,Denis Vlasenko2007-07-241-5/+5
| | | | | | | | | which scans thru "abc\0def\0123\0\0" type strings. Saves 250 bytes. text data bss dec hex filename 781266 1328 11844 794438 c1f46 busybox_old 781010 1328 11844 794182 c1e46 busybox_unstripped
* style fix (stray space before ';')Denis Vlasenko2007-07-211-1/+1
|
* - move iprule and ipaddress from matches() to index_in_str_arrayBernhard Reutner-Fischer2007-06-201-1/+1
| | | | | | | | text data bss dec hex filename 2544 0 0 2544 9f0 networking/libiproute/iprule.o.oorig 2356 0 0 2356 934 networking/libiproute/iprule.o 6481 0 0 6481 1951 networking/libiproute/ipaddress.o.oorig 6464 0 0 6464 1940 networking/libiproute/ipaddress.o
* - remove another user of the deprecated matches() func by moving it to use ↵Bernhard Reutner-Fischer2007-06-201-11/+24
| | | | | | | | index_in_str_array. Untested. text data bss dec hex filename 445 0 4 449 1c1 ip_parse_common_args.o.oorig 391 0 4 395 18b ip_parse_common_args.o
* delete tons of extra #includesDenis Vlasenko2007-05-311-5/+1
|
* libiproute: audit callgraph, shortcut error paths into die() functions.Denis Vlasenko2007-04-071-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Kill a few statics, made other globals smaller: oneline is smallint, _SL_ is char function old new delta print_tunnel 693 731 +38 print_route 1775 1777 +2 print_addrinfo 1495 1497 +2 ipaddr_list_or_flush 2826 2828 +2 oneline 4 1 -3 _SL_ 4 1 -3 ipaddr_modify 1476 1472 -4 parse_address 124 119 -5 ip_parse_common_args 429 423 -6 on_off 53 46 -7 do_del_ioctl 113 106 -7 do_add_ioctl 120 113 -7 do_show 864 856 -8 iprule_list 157 148 -9 do_iptunnel 310 299 -11 do_add 143 126 -17 get_ctl_fd 95 76 -19 set_address 108 84 -24 ip_main 351 323 -28 static.ifr 32 - -32 parse_args 1992 1949 -43 iproute_list_or_flush 1673 1582 -91 do_iplink 1583 1485 -98 filter 280 - -280 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 4/18 up/down: 44/-702) Total: -658 bytes
* preparatory patch for -Wwrite-strings #5Denis Vlasenko2007-01-291-1/+1
|
* Remove networking/libiproute/linux/pkt_sched.hDenis Vlasenko2007-01-021-2/+4
| | | | | (and networking/libiproute/linux/ since it become empty). Style fixes.
* lots of silly indent fixesDenis Vlasenko2006-10-031-2/+2
|
* Standardize on the vi editing directives being on the first line."Robert P. J. Day"2006-07-021-0/+1
|
* - reuse strings and messages. Saves about 600BBernhard Reutner-Fischer2006-06-071-1/+1
|
* - include proper headers.Bernhard Reutner-Fischer2006-04-051-1/+1
|
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-1/+1
|
* "This function was not updating the argc and argv pointers to reflectGlenn L McGrath2003-08-291-0/+2
| | | | | | the arguments it consumed, which means the calling function encountered them as well. As a result, a command like "ip -6 addr" was yielding a usage error." - Philip Blundell
* Major coreutils update.Manuel Novoa III2003-03-191-2/+2
|
* This seems sufficient for ifup and ifdown to actually workEric Andersen2003-01-271-0/+2
| | | | as advertised. Works for me (at least with glibc)
* fix warningGlenn L McGrath2002-12-161-0/+2
|
* Enable ip commands to be compiled seperate from ip, modifed patch from ↵Glenn L McGrath2002-12-011-0/+70
Bastian Blank