aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ipaddress.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ip: support for the LOWER_UP flag by Natanael Copa <natanael.copa@gmail.com>.Denis Vlasenko2008-06-051-0/+5
| | | | | ~50 bytes code growth.
* replace single-char printf's with bb_putcharDenis Vlasenko2008-06-051-1/+1
|
* libiproute: use stdout directly instead of passing it as a parameterDenis Vlasenko2008-06-051-54/+51
| | | | | | | | | | | function old new delta iprule_list 86 82 -4 print_rule 860 791 -69 ipaddr_list_or_flush 2484 2384 -100 print_addrinfo 1498 1292 -206 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/4 up/down: 0/-379) Total: -379 bytes
* libiproute: style fixes, and using smallint as appropriateDenis Vlasenko2008-05-311-22/+21
| | | | | | | | | | | function old new delta print_route 1730 1731 +1 print_addrinfo 1497 1498 +1 iproute_list_or_flush 1232 1229 -3 ipaddr_list_or_flush 2490 2484 -6 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 2/2 up/down: 2/-9) Total: -7 bytes
* ip: stop propagating argc; optimize ip_parse_common_argsDenis Vlasenko2007-11-181-28/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* ll_types.c: optimize link type table, make it conditionalDenis Vlasenko2007-10-291-1/+1
| | | | | | | | | | | | | | | | on FEATURE_IP_RARE_PROTOCOLS function old new delta static.arphrd_name - 373 +373 static.arphrd_type - 124 +124 ll_type_n2a 58 78 +20 static.arphrd_names 496 - -496 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 1/0 up/down: 517/-496) Total: 21 bytes text data bss dec hex filename 776880 974 9420 787274 c034a busybox_old 776594 974 9420 786988 c022c busybox_unstripped
* replace printf with fputs where appropriateDenis Vlasenko2007-09-301-7/+7
|
* trylink: produce even more info about final link stageDenis Vlasenko2007-08-121-3/+3
| | | | | | | | | 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-16/+14
| | | | | | | | | 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
|
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta do_iptunnel 203 977 +774 process_dev 5328 5494 +166 ioctl_or_perror - 54 +54 ioctl_or_perror_and_die - 51 +51 ioctl_alt_func - 49 +49 bb_ioctl_or_warn - 47 +47 do_add_ioctl 102 145 +43 bb_xioctl - 39 +39 print_value_on_off - 31 +31 get_lcm 105 123 +18 arp_main 2155 2167 +12 .................. zcip_main 1576 1566 -10 setlogcons_main 92 82 -10 dumpkmap_main 263 253 -10 do_get_ioctl 85 75 -10 setkeycodes_main 165 154 -11 write_table 244 232 -12 vconfig_main 318 306 -12 do_del_ioctl 93 81 -12 set_address 75 62 -13 maybe_set_utc 30 16 -14 loadfont_main 495 479 -16 slattach_main 712 695 -17 do_loadfont 191 174 -17 do_iplink 1155 1136 -19 getty_main 2583 2562 -21 fbset_main 2058 2035 -23 do_time 588 565 -23 xioctl 25 - -25 read_rtc 186 160 -26 parse_conf 1299 1270 -29 udhcp_read_interface 269 239 -30 bb_ioctl 45 - -45 bb_ioctl_alt 70 - -70 bb_ioctl_on_off 78 - -78 .rodata 129370 129018 -352 do_show 799 - -799 ------------------------------------------------------------------------------ (add/remove: 6/5 grow/shrink: 13/49 up/down: 1316/-1864) Total: -548 bytes text data bss dec hex filename 675352 2740 13968 692060 a8f5c busybox_old 674804 2740 13968 691512 a8d38 busybox_unstripped
* - move iprule and ipaddress from matches() to index_in_str_arrayBernhard Reutner-Fischer2007-06-201-17/+15
| | | | | | | | 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
* delete tons of extra #includesDenis Vlasenko2007-05-311-8/+3
|
* - add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵Bernhard Reutner-Fischer2007-04-121-32/+10
| | | | | | a bit. -916 byte
* libiproute: audit callgraph, shortcut error paths into die() functions.Denis Vlasenko2007-04-071-36/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* stop using __u32 etc. uint32_t is there for a reasonDenis Vlasenko2006-12-311-1/+1
|
* introduce LONE_CHAR (optimized strcmp with one-char string)Denis Vlasenko2006-12-211-1/+1
|
* inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid]Denis Vlasenko2006-12-161-1/+1
|
* do not overflow ifr_name. maybe it was safe in some places,Denis Vlasenko2006-11-271-1/+1
| | | | but not everywhere. err to the safe side.
* - add 'ip rule' support. First take..Bernhard Reutner-Fischer2006-11-211-1/+1
| | | | | text data bss dec hex filename 2999 0 0 2999 bb7 networking/libiproute/iprule.o
* rename: compare_string_array -> index_in_str_arrayDenis Vlasenko2006-11-051-10/+9
| | | | | introduce index_in_substr_array and use it in iproute2
* ip: "ip addr del" and "ip addr delete" both should workDenis Vlasenko2006-10-261-7/+8
|
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-8/+8
|
* 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-5/+5
|
* Header cleanup: don't #include headers that libbb.h already includes.Rob Landley2006-06-021-4/+1
|
* Patch from Bernhard Fischer to remove some useless bits.Rob Landley2006-05-171-6/+0
|
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-2/+2
| | | | definitions. (That should only be on prototypes.)
* Patch from Denis Vlasenko to constify things and fix a few typos.Rob Landley2006-02-221-8/+15
|
* sort out yet more type issuesEric Andersen2006-01-301-2/+2
|
* - add some ATTRIBUTE_UNUSED.Bernhard Reutner-Fischer2006-01-301-6/+5
| | | | - use shorter boilerplate while at it.
* just whitespaceTim Riker2006-01-251-6/+6
|
* restore compare_string_array new interface (make broken by landley)"Vladimir N. Oleynik"2005-12-061-3/+3
|
* - make libiproute compile..Bernhard Reutner-Fischer2005-10-081-0/+1
|
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-1/+1
| | | | which were otherwise cluttering the global namespace.
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-4/+4
|
* Major coreutils update.Manuel Novoa III2003-03-191-12/+12
|
* This seems sufficient for ifup and ifdown to actually workEric Andersen2003-01-271-0/+2
| | | | as advertised. Works for me (at least with glibc)
* Eliminate use of kernel header fileEric Andersen2003-01-141-3/+2
| | | | -Erik
* Option to allow ifupdown use ip commands instead of ifconfig, add flushGlenn L McGrath2003-01-131-3/+80
| | | | command to ipaddr, patch by Bastian Blank
* Only included headers that are used.Glenn L McGrath2002-12-161-14/+7
|
* undefine sysinfo to prevent breakage on ia64Glenn L McGrath2002-12-111-0/+2
|
* Use compare_string_array in ipaddress to save a few bytes, minor cleanupsGlenn L McGrath2002-12-021-122/+157
|
* Enable ip commands to be compiled seperate from ip, modifed patch from ↵Glenn L McGrath2002-12-011-3/+2
| | | | Bastian Blank
* Use error_msg instead of fprintf(stderrGlenn L McGrath2002-11-281-17/+12
|
* IP applet by Bastian Blank <waldi@debian.org>Glenn L McGrath2002-11-101-0/+723