aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* ping: add -t TTL optionJoachim Nilsson2010-11-281-9/+102
| | | | | | | | | | | | function old new delta common_ping_main 1755 1796 +41 packed_usage 27954 27971 +17 bbconfig_config_bz2 4965 4966 +1 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 3/0 up/down: 59/0) Total: 59 bytes Signed-off-by: Joachim Nilsson <joachim.nilsson@vmlinux.org> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: whitespace fixesDenys Vlasenko2010-10-281-5/+5
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularDenys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: do not leak data from stack; shrinkDenys Vlasenko2010-03-031-47/+57
| | | | | | | | | | | | | | | | | | | FANCY ping: function old new delta common_ping_main 386 1732 +1346 sendping6 98 83 -15 sendping4 188 158 -30 ping4 575 - -575 ping6 756 - -756 ------------------------------------------------------------------------------ (add/remove: 0/2 grow/shrink: 1/2 up/down: 1346/-1376) Total: -30 bytes !FANCY ping: function old new delta hostname 4 - -4 common_ping_main 566 499 -67 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: suppress ~60% of "aliased warnings" on gcc-4.4.1Denys Vlasenko2010-02-041-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: use ICMP_MINLENBernhard Reutner-Fischer2010-01-231-1/+1
| | | | | | no code changes Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* ping: fix unaligned access. closes bug 745.Denys Vlasenko2009-11-261-1/+2
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping: use |=, not =, when combine option bit maskDenys Vlasenko2009-11-211-1/+1
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* ping6: do not play dirty tricks with argvDenys Vlasenko2009-11-201-15/+26
| | | | | | | | | | | function old new delta common_ping_main - 368 +368 ping6_main 30 14 -16 ping_main 370 11 -359 ------------------------------------------------------------------------------ (add/remove: 1/0 grow/shrink: 0/2 up/down: 368/-375) Total: -7 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use ffulsh_all()Denys Vlasenko2009-11-021-1/+1
| | | | | | | | | | | | | | | | | | | | function old new delta buffer_fill_and_print 179 196 +17 fflush_all - 9 +9 spawn 87 92 +5 rtcwake_main 455 453 -2 ... alarm_intr 93 84 -9 readcmd 1072 1062 -10 bb_ask 345 333 -12 more_main 845 832 -13 flush_stdout_stderr 42 23 -19 xfflush_stdout 27 - -27 flush_stderr 30 - -30 ------------------------------------------------------------------------------ (add/remove: 1/2 grow/shrink: 2/50 up/down: 31/-397) Total: -366 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: mass renaming of USE_XXXX to IF_XXXXDenis Vlasenko2009-04-211-1/+1
| | | | | | and SKIP_XXXX to IF_NOT_XXXX - the second one was especially badly named. It was not skipping anything!
* *: fix SO_BINDTODEVICE. Kernel wants at least IFNAMSIZ bytes there.Denis Vlasenko2008-12-101-2/+2
|
* ping: trivial code shrinkDenis Vlasenko2008-10-271-27/+30
| | | | | | | function old new delta ping6_main 31 30 -1 ping_main 405 370 -35
* ping: SO_RCVBUF must be bigger than packet size,Denis Vlasenko2008-08-241-4/+6
| | | | | otherwise large ping packets might fail to be received.
* *: rename ATTRIBUTE_XXX to just XXX.Denis Vlasenko2008-07-051-7/+7
|
* - use EXIT_{SUCCESS,FAILURE}. No object-code changesBernhard Reutner-Fischer2008-05-191-1/+1
|
* ping: dont leak uninitialized data in ping packetsDenis Vlasenko2008-04-291-4/+6
| | | | | | | function old new delta sendping4 176 186 +10 sendping6 93 100 +7
* ping: add -w, -W support (James Simmons <jsimmons AT infradead.org>)Denis Vlasenko2008-04-071-23/+50
| | | | | | | | | | | | | function old new delta print_stats_and_exit - 282 +282 sendping_tail 151 231 +80 packed_usage 23976 24054 +78 ping_main 401 412 +11 arm_ioctl 13 20 +7 pingstats 259 - -259 ------------------------------------------------------------------------------ (add/remove: 1/1 grow/shrink: 4/0 up/down: 458/-259) Total: 199 bytes
* *: add -Wunused-parameter; fix resulting breakageDenis Vlasenko2008-03-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta procps_scan 1265 1298 +33 aliascmd 278 283 +5 parse_file_cmd 116 120 +4 dname_enc 373 377 +4 setcmd 90 93 +3 execcmd 57 60 +3 count_lines 72 74 +2 process_command_subs 340 339 -1 test_main 409 407 -2 mknod_main 179 177 -2 handle_incoming_and_exit 2653 2651 -2 argstr 1312 1310 -2 shiftcmd 131 128 -3 exitcmd 46 43 -3 dotcmd 297 294 -3 breakcmd 86 83 -3 evalpipe 353 349 -4 evalcommand 1180 1176 -4 evalcmd 109 105 -4 send_tree 374 369 -5 mkfifo_main 82 77 -5 evalsubshell 152 147 -5 typecmd 75 69 -6 letcmd 61 55 -6 add_cmd 1190 1183 -7 main 891 883 -8 ash_main 1415 1407 -8 parse_stream 1377 1367 -10 alloc_procps_scan 55 - -55 ------------------------------------------------------------------------------ (add/remove: 0/1 grow/shrink: 7/21 up/down: 54/-148) Total: -94 bytes text data bss dec hex filename 797195 658 7428 805281 c49a1 busybox_old 797101 658 7428 805187 c4943 busybox_unstripped
* Fix compilation error when FEATURE_FANCY_PING enabled. AlsoPaul Fox2008-02-011-2/+2
| | | | | | reorder networking/Config.in moving FEATURE_FANCY_PING next to PING6. (Cristian Ionescu-Idbohrn)
* - be C99 friendly. Anonymous unions are a GNU extension. This change isBernhard Reutner-Fischer2008-01-291-10/+10
| | | | | size-neutral WRT -std=gnu99 and fixes several compilation errors for strict C99 mode.
* ps: fix build breakage from vda's recent commitDenis Vlasenko2008-01-071-2/+2
| | | | | *: whitespace fixes
* ping: fix breakage from -I fixDenis Vlasenko2007-10-201-2/+2
| | | | | passwd: SELinux support by KaiGai Kohei <kaigai@ak.jp.nec.com>
* paing: make -I ethN work too (-I addr already worked)Denis Vlasenko2007-10-191-6/+15
|
* add -fvisibility=hidden to CC flags, mark XXX_main functionsDenis Vlasenko2007-10-111-3/+3
| | | | | 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
* introduce and use xdup2(int, int)Denis Vlasenko2007-08-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop checking whether setsockopt_reuseaddr(int fd) was successful (it always is) remove second parameter (sockllen) from xmalloc_sockaddr2xxxxx functions sockaddr2str 142 156 +14 collect_blk 467 474 +7 xdup2 28 33 +5 singlemount 4456 4454 -2 print_host 214 212 -2 nslookup_main 139 137 -2 ftpgetput_main 414 412 -2 udhcpd_main 1258 1255 -3 udhcpc_main 2405 2402 -3 traceroute_main 4125 4122 -3 nc_main 1072 1069 -3 buffer_fill_and_print 76 73 -3 xmalloc_sockaddr2hostonly_noport 18 14 -4 xmalloc_sockaddr2host_noport 18 14 -4 xmalloc_sockaddr2host 15 11 -4 xmalloc_sockaddr2dotted_noport 18 14 -4 xmalloc_sockaddr2dotted 18 14 -4 wget_main 2618 2614 -4 ping_main 393 389 -4 ip_port_str 120 115 -5 dhcprelay_main 1146 1141 -5 dnsd_main 1531 1525 -6 passwd_main 1110 1102 -8 udhcp_kernel_packet 206 197 -9 udhcp_listen_socket 154 144 -10 getty_main 2576 2566 -10 setup 655 640 -15 xmove_fd 51 34 -17 dolisten 759 742 -17 tcpudpsvd_main 1866 1836 -30 startservice 339 299 -40
* ping: fix non-fancy ping6Denis Vlasenko2007-07-021-1/+2
|
* ping: fix incorrect handling of -I (Iouri Kharon <bc-info@styx.cabel.net>)Denis Vlasenko2007-06-191-5/+8
|
* ping: fix write-after-allocated-mem bugDenis Vlasenko2007-06-181-34/+29
| | | | | | | | | | | | | | | | | | ping: use monotonic_us instead of gettimeofday: smaller code and needs only 4 bytes in the packet ping: display roundtrip times with 1/1000th of ms, not 1/10 ms precision. wget: small optimization function old new delta pingstats 243 259 +16 sendping6 98 93 -5 sendping4 183 178 -5 .rodata 129715 129707 -8 progressmeter 867 855 -12 unpack_tail 320 272 -48 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/5 up/down: 16/-78) Total: -62 bytes
* pscan: new applet (portscanner). ~1350 bytes. By Tito <farmatito@tiscali.it>Denis Vlasenko2007-06-161-0/+7
| | | | wget: lift 256 chars limitation on terminal width
* ping: stop using data/bssDenis Vlasenko2007-06-041-18/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | function old new delta ping_main 375 392 +17 unpack_tail 317 320 +3 ping4 525 528 +3 ping6 772 773 +1 sendping6 99 98 -1 sendping4 184 183 -1 myid 2 - -2 sendping_tail 154 151 -3 tsum 4 - -4 tmin 4 - -4 tmax 4 - -4 source_lsa 4 - -4 pingsock 4 - -4 pingcount 4 - -4 ntransmitted 4 - -4 nrepeats 4 - -4 nreceived 4 - -4 if_index 4 - -4 hostname 8 4 -4 dotted 4 - -4 datalen 4 - -4 pingaddr 28 - -28 rcvd_tbl 128 - -128 ------------------------------------------------------------------------------ (add/remove: 0/15 grow/shrink: 4/4 up/down: 24/-215) Total: -191 bytes text data bss dec hex filename 679835 2728 16736 699299 aaba3 busybox_old 679851 2720 16536 699107 aaae3 busybox_unstripped
* ping: fix wrong sign extension of packet id (bug 1373)Denis Vlasenko2007-05-271-2/+2
|
* usage.c: remove reference to busybox.hDenis Vlasenko2007-05-261-1/+1
| | | | | *: s/include "busybox.h"/include "libbb.h"
* - add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵Bernhard Reutner-Fischer2007-04-121-20/+5
| | | | | | a bit. -916 byte
* ping: don't measure times if ping payload is less than 8 bytes;Denis Vlasenko2007-03-031-105/+75
| | | | commonalize some ping code.
* ping: reuse another bit of common code. -60 bytesDenis Vlasenko2007-02-091-28/+16
|
* ping: support -I addr in family neutral manner; reuse a bit of common codeDenis Vlasenko2007-02-091-42/+30
|
* add x to IPv6 functions which can dieDenis Vlasenko2007-02-041-4/+4
|
* suppress warnings about easch <applet>_main() havingDenis Vlasenko2007-02-031-0/+3
| | | | no preceding prototype
* assorted fixes for bugs found with randomconfigDenis Vlasenko2007-02-031-1/+1
|
* preparatory patch for -Wwrite-strings #5Denis Vlasenko2007-01-291-3/+3
|
* taskset: fix incorrect rage spec and allow 0xXXX inputDenis Vlasenko2007-01-291-37/+30
| | | | ping: shave off 60 bytes
* accidentally applied wrong (old) patch, fixing up...Denis Vlasenko2007-01-251-8/+7
|
* opt_complementary doesn't like numeric opts :(Denis Vlasenko2007-01-241-1/+1
|
* Unify ping and ping6. ping has -4 and -6 which forceDenis Vlasenko2007-01-241-69/+452
| | | | | | | | name resolution into IP or IPv6 only, otherwise we take address family returned by host2sockaddr() in lsa->sa.sa_family. IOW: "ping ::1" with do IPv6 ping, "ping 127.0.0.1" will do IPv4 ping. ping6 is aliased to "ping -6".
* ping6: stop using xgethostbyname2, remove it from libbb.Denis Vlasenko2007-01-221-2/+3
|
* 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.
* exterminate u_intXXX.Denis Vlasenko2007-01-221-22/+25
| | | | fix ping6 buglet (memset is too short), minor sync between ping and ping6
* fix verbose output; remove commented-out includes.Denis Vlasenko2007-01-111-4/+0
|