summaryrefslogtreecommitdiff
path: root/networking/arping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* zcip: use low-order 4 bytes of MAC as random seed, not 4 high-orderDenis Vlasenko2007-11-251-36/+33
| | | | | | | | | | | | | | | | arping: fix wrong roundtrip calculation arping,zcip: cleanups and code shrink run 389 402 +13 arp 195 188 -7 zcip_main 1524 1495 -29 arping_main 1874 1823 -51 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 13/-87) Total: -74 bytes text data bss dec hex filename 776587 929 9100 786616 c00b8 busybox_old 776499 929 9100 786528 c0060 busybox_unstripped
* arping: fix a bug where there is implicit count of 4G;Denis Vlasenko2007-11-231-32/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | eliminate data/bss usage; code shrink function old new delta timeout_us 4 - -4 static.start 4 - -4 src 4 - -4 sock 4 - -4 sent 4 - -4 req_recv 4 - -4 received 4 - -4 last 4 - -4 dst 4 - -4 count 4 - -4 brd_sent 4 - -4 brd_recv 4 - -4 catcher 375 365 -10 me 20 - -20 he 20 - -20 arping_main 1941 1874 -67 ------------------------------------------------------------------------------ (add/remove: 0/14 grow/shrink: 0/2 up/down: 0/-165) Total: -165 bytes text data bss dec hex filename 783035 941 9244 793220 c1a84 busybox_old 782907 937 9156 793000 c19a8 busybox_unstripped
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-1/+1
| | | | | EXTERNALLY_VISIBLE. 5% size reduction of libbusybox.so
* don't pass argc in getopt32, it's superfluousDenis Vlasenko2007-08-181-1/+1
| | | | | | | | (add/remove: 0/0 grow/shrink: 12/131 up/down: 91/-727) Total: -636 bytes text data bss dec hex filename 773469 1058 11092 785619 bfcd3 busybox_old 772644 1058 11092 784794 bf99a busybox_unstripped
* xioctl and friends by Tito <farmatito@tiscali.it>Denis Vlasenko2007-07-141-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* wget: use monotonic_sec instead of gettimeofdayDenis Vlasenko2007-06-171-42/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | zcip: use monotonic_us instead of gettimeofday udhcpcd: simpler, shorter random_xid() function old new delta monotonic_sec - 41 +41 find_pair 164 180 +16 run_list_real 2018 2028 +10 cmp_main 547 555 +8 collect_ctx 112 119 +7 singlemount 4544 4549 +5 time_main 1124 1128 +4 static.start_sec - 4 +4 static.lastupdate_sec - 4 +4 sock - 4 +4 read_package_field 253 257 +4 pick 38 40 +2 get_next_line 145 147 +2 count_lines 59 61 +2 process_stdin 435 433 -2 xstrtoul_range_sfx 229 226 -3 static.initialized 4 1 -3 dhcprelay_main 1125 1122 -3 catcher 380 377 -3 arping_main 1969 1966 -3 s 8 4 -4 cfg 4 - -4 static.lastupdate 8 - -8 start 8 - -8 random_xid 95 33 -62 .rodata 129114 129050 -64 zcip_main 1731 1576 -155 progressmeter 1035 867 -168 ------------------------------------------------------------------------------ (add/remove: 4/3 grow/shrink: 10/11 up/down: 113/-490) Total: -377 bytes
* hwclock: size optimizationsDenis Vlasenko2007-06-171-70/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | libbb/time.c: new file, introducing monotonic_us() pscan, traceroute, arping: use it instead of gettimeofday ping, zcip: TODO function old new delta monotonic_us - 89 +89 find_pair 164 180 +16 .rodata 129747 129763 +16 refresh 1144 1152 +8 ............ timeout 8 4 -4 static.start 8 4 -4 last 8 4 -4 parse_conf 1303 1284 -19 time_main 1149 1124 -25 gettimeofday_us 39 - -39 arping_main 2042 1969 -73 hwclock_main 594 501 -93 catcher 485 380 -105 traceroute_main 4300 4117 -183 ------------------------------------------------------------------------------ (add/remove: 2/1 grow/shrink: 8/11 up/down: 157/-562) Total: -405 bytes
* arping: -i should be -IDenis Vlasenko2007-06-171-1/+1
|
* delete tons of extra #includesDenis Vlasenko2007-05-311-2/+2
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* add x to IPv6 functions which can dieDenis Vlasenko2007-02-041-1/+1
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+1
| | | | no preceding prototype
* preparatory patch for -Wwrite-strings #2Denis Vlasenko2007-01-291-1/+1
|
* arping: stop using last gethostbyname2 in the treeDenis Vlasenko2007-01-251-7/+5
| | | | hostname: small optimization
* cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko2007-01-221-2/+1
| | | | | prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
* use xbind, xconnect where appropriate.Denis Vlasenko2006-12-231-77/+50
| | | | small edits to arping
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-1/+1
| | | | | use them where appropriate. 200 bytes saved
* message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko2006-10-201-1/+1
|
* attempt to regularize atoi mess.Denis Vlasenko2006-10-081-4/+4
|
* getopt_ulflags -> getopt32.Denis Vlasenko2006-10-031-3/+3
| | | | | | | | It is impossible to formulate sane ABI based on size of ulong because it can be 32-bit or 64-bit. Basically it means that you cannot portably use more that 32 option chars in one call anyway... Make it explicit.
* rename bb_default_error_retval -> xfunc_error_retvalDenis Vlasenko2006-10-031-1/+1
|
* arping: fix bug (getopt_ulflags and optarg don't mix),Denis Vlasenko2006-09-231-24/+16
| | | | remove unreachable error path.
* replacing func() with xfunc() where appropriateDenis Vlasenko2006-09-031-5/+2
|
* Convert setuid/setgid users to xsetuid/xsetgid.Rob Landley2006-07-161-1/+2
|
* More removal of "#if 0" content."Robert P. J. Day"2006-07-011-12/+0
|
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* Remove bb_strlen() in favor of -fno-builtin-strlen. Saves as many bytesRob Landley2006-05-071-1/+1
| | | | | as the old optimization did (actually does slightly better under gcc 4.0), and simplifies the code.
* - patch from Denis Vlasenko to add and use bb_xsocket() and to useBernhard Reutner-Fischer2006-04-121-2/+2
| | | | | bb_xopen some more while at it. Also use shorter boilerplate while at it.
* - coalesce printf calls.Bernhard Reutner-Fischer2006-04-031-11/+12
| | | | | | text data bss dec hex filename 3474 4 96 3574 df6 networking/arping.o.orig 3424 4 96 3524 dc4 networking/arping.o
* - use bb_opt_complementally; Saves another 14 bytes. (thanks again, vodz)Bernhard Reutner-Fischer2006-04-031-4/+5
|
* - set flags in a more reasonable manner. Thanks, vodz.Bernhard Reutner-Fischer2006-04-031-16/+5
| | | | | | text data bss dec hex filename 3520 4 96 3620 e24 networking/arping.o.oorig 3488 4 96 3588 e04 networking/arping.o
* - use RESERVE_CONFIG_BUFFER. For defconfig this gives:Bernhard Reutner-Fischer2006-03-311-3/+5
| | | | | | | text data bss dec hex filename 3627 4 120 3751 ea7 networking/arping.o.oorig 3548 4 96 3648 e40 networking/arping.o.r14710 3520 4 96 3620 e24 networking/arping.o
* - shrink it a bit further.Bernhard Reutner-Fischer2006-03-311-76/+65
| | | | | | text data bss dec hex filename 3627 4 120 3751 ea7 networking/arping.o.oorig 3548 4 96 3648 e40 networking/arping.o
* Shrink patch from Bernhard Fischer.Rob Landley2006-03-301-81/+69
|
* 2006-03-21 Shaun Jackman <sjackman@gmail.com>: Include signal.h instead of ↵Mike Frysinger2006-03-221-1/+1
| | | | sys/signal.h.
* fix up annoying signed/unsigned and mixed type errorsEric Andersen2006-01-301-4/+4
|
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-3/+3
| | | | which were otherwise cluttering the global namespace.
* Patch by Fillod Stephane, declare variables as static to not clobberGlenn L McGrath2003-09-261-20/+20
| | | | busybox namespace
* *** empty log message ***Glenn L McGrath2003-08-281-1/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-21/+21
|
* Minor update to arping, patch from Nick FedchikGlenn L McGrath2003-02-091-7/+9
|
* fix missed option argument for -I <device>, interface name checksGlenn L McGrath2003-01-191-11/+16
| | | | redesigned, patch by Nick Fedchik
* arping applet by Nick FedchikGlenn L McGrath2003-01-091-0/+492