aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* ping6: fix sequence numbers (missed ntoh) and ttl display.Denis Vlasenko2007-01-081-27/+14
| | | | | (apparently some, eh, clever libc guy decided that *CHANGING* IPV6_HOPLIMIT value in libc header is a nifty idea...)
* ping[6]: don't do htons(a++), it can be a macroDenis Vlasenko2007-01-031-1/+2
|
* fixes from Yann E. MORIN <yann.morin.1998@anciens.enib.fr>Denis Vlasenko2006-12-311-2/+3
|
* style cleanup: return(a) -> return a, part 2Denis Vlasenko2006-11-271-1/+1
|
* introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko2006-11-221-3/+1
| | | | | use them where appropriate. 200 bytes saved
* login: use %s - we know that string is not too long thereDenis Vlasenko2006-11-201-53/+32
| | | | | ping[6]: use getopt32: smaller (-50 bytes) and handles -c6 correctly (was requiring '-c 6' with mandatory space)
* silly size savings and capitalization fixesDenis Vlasenko2006-10-261-1/+1
|
* 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-8/+8
|
* ping: bind -> xbindDenis Vlasenko2006-09-021-2/+1
|
* ping(6): use htons instead of SWAP_BE.Denis Vlasenko2006-09-021-3/+3
|
* ping: implement -I optionDenis Vlasenko2006-09-021-10/+51
|
* ping6: resolve interface name to number early.Denis Vlasenko2006-09-021-1/+1
| | | | | gcc is more efficient at truncating int to int16 via cast, use that instead of &.
* Sync ping and ping6 a bit, fix style and indentation.Denis Vlasenko2006-09-021-11/+8
|
* Make a gcc 4.1 warning go away.Rob Landley2006-08-011-1/+1
|
* Bugfix from Shaun Jackman: don't attempt to write 64 bytes and then fail ifRob Landley2006-05-311-1/+4
| | | | the write wasn't 192 bytes long.
* Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley2006-05-271-1/+0
|
* Patch from KRONSTORFER Horst to Fix a size mismatch in ping, such as the 56/84Rob Landley2006-04-011-2/+2
| | | | | | | mismatch inthe following example: # ping -c 1 172.16.2.1 PING 172.16.2.1 (172.16.2.1): 56 data bytes 84 bytes from 172.16.2.1: icmp_seq=0 ttl=64 time=0.2 ms
* 2006-03-21 Shaun Jackman <sjackman@gmail.com>: Include signal.h instead of ↵Mike Frysinger2006-03-221-1/+1
| | | | sys/signal.h.
* Patch from Denis Vlasenko turning static const int (which gets emitted intoRob Landley2006-03-101-7/+9
| | | | the busybox binary) into enums (which don't).
* Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley2006-03-061-2/+2
| | | | definitions. (That should only be on prototypes.)
* just whitespaceTim Riker2006-01-251-14/+14
|
* Ok, ping needs a rewrite from the ground up. (This is not a busybox app.)Rob Landley2006-01-111-2/+2
| | | | | Fix bug 309, where ping -s 1 localhost would give an elapsed time 9 digits long due to a stack overflow. Apparently, iputils also does this.
* Add a fflush(stdout).Rob Landley2005-12-151-58/+4
|
* BsAtHome writes in Bug 433:Mike Frysinger2005-09-151-5/+6
| | | | | Ping packets sent by busybox have wrong endian on f.x. mips32 (openwrt). Attatched is a patch that uses htons() and ntohs() to be platform independent.
* 2005-03-19 Shaun Jackman <sjackman@gmail.com>Mike Frysinger2005-07-261-1/+1
| | | | * networking/ping.c (ping): Change the type of fromlen to socklen_t.