summaryrefslogtreecommitdiff
path: root/networking/ping.c
AgeCommit message (Collapse)Author
2007-04-12- add xsendto and use where appropriate; shrink iplink; sanitize libiproute ↵Bernhard Reutner-Fischer
a bit. -916 byte
2007-03-03ping: don't measure times if ping payload is less than 8 bytes;Denis Vlasenko
commonalize some ping code.
2007-02-09ping: reuse another bit of common code. -60 bytesDenis Vlasenko
2007-02-09ping: support -I addr in family neutral manner; reuse a bit of common codeDenis Vlasenko
2007-02-04add x to IPv6 functions which can dieDenis Vlasenko
2007-02-03suppress warnings about easch <applet>_main() havingDenis Vlasenko
no preceding prototype
2007-02-03assorted fixes for bugs found with randomconfigDenis Vlasenko
2007-01-29preparatory patch for -Wwrite-strings #5Denis Vlasenko
2007-01-29taskset: fix incorrect rage spec and allow 0xXXX inputDenis Vlasenko
ping: shave off 60 bytes
2007-01-25accidentally applied wrong (old) patch, fixing up...Denis Vlasenko
2007-01-24opt_complementary doesn't like numeric opts :(Denis Vlasenko
2007-01-24Unify ping and ping6. ping has -4 and -6 which forceDenis Vlasenko
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".
2007-01-22ping6: stop using xgethostbyname2, remove it from libbb.Denis Vlasenko
2007-01-22cleanups: unnecessary casts, unified const_1, eliminate cross-.c fileDenis Vlasenko
prototypes (heresy!), add spaces in places like "flags&NETSTAT_CONNECTED", removed unused #defines, #ifdef -> #if, use uint32_t for ipv4 addrs.
2007-01-22exterminate u_intXXX.Denis Vlasenko
fix ping6 buglet (memset is too short), minor sync between ping and ping6
2007-01-11fix verbose output; remove commented-out includes.Denis Vlasenko
2007-01-08ping6: fix sequence numbers (missed ntoh) and ttl display.Denis Vlasenko
(apparently some, eh, clever libc guy decided that *CHANGING* IPV6_HOPLIMIT value in libc header is a nifty idea...)
2007-01-03ping[6]: don't do htons(a++), it can be a macroDenis Vlasenko
2006-12-31fixes from Yann E. MORIN <yann.morin.1998@anciens.enib.fr>Denis Vlasenko
2006-11-27style cleanup: return(a) -> return a, part 2Denis Vlasenko
2006-11-22introduce setsockopt_reuseaddr(int fd), setsockopt_broadcast(int fd),Denis Vlasenko
use them where appropriate. 200 bytes saved
2006-11-20login: use %s - we know that string is not too long thereDenis Vlasenko
ping[6]: use getopt32: smaller (-50 bytes) and handles -c6 correctly (was requiring '-c 6' with mandatory space)
2006-10-26silly size savings and capitalization fixesDenis Vlasenko
2006-10-20message string changes, mostly for consistency, also -32 bytes in .rodataDenis Vlasenko
2006-10-08attempt to regularize atoi mess.Denis Vlasenko
2006-09-02ping: bind -> xbindDenis Vlasenko
2006-09-02ping(6): use htons instead of SWAP_BE.Denis Vlasenko
2006-09-02ping: implement -I optionDenis Vlasenko
2006-09-02ping6: resolve interface name to number early.Denis Vlasenko
gcc is more efficient at truncating int to int16 via cast, use that instead of &.
2006-09-02Sync ping and ping6 a bit, fix style and indentation.Denis Vlasenko
2006-08-01Make a gcc 4.1 warning go away.Rob Landley
2006-05-31Bugfix from Shaun Jackman: don't attempt to write 64 bytes and then fail ifRob Landley
the write wasn't 192 bytes long.
2006-05-27Consolidate #include <sys/time.h> so libbb.h does it.Rob Landley
2006-04-01Patch from KRONSTORFER Horst to Fix a size mismatch in ping, such as the 56/84Rob Landley
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-222006-03-21 Shaun Jackman <sjackman@gmail.com>: Include signal.h instead of ↵Mike Frysinger
sys/signal.h.
2006-03-10Patch from Denis Vlasenko turning static const int (which gets emitted intoRob Landley
the busybox binary) into enums (which don't).
2006-03-06Robert P. Day removed 8 gazillion occurrences of "extern" on functionRob Landley
definitions. (That should only be on prototypes.)
2006-01-25just whitespaceTim Riker
2006-01-11Ok, ping needs a rewrite from the ground up. (This is not a busybox app.)Rob Landley
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.
2005-12-15Add a fflush(stdout).Rob Landley
2005-09-15BsAtHome writes in Bug 433:Mike Frysinger
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-07-262005-03-19 Shaun Jackman <sjackman@gmail.com>Mike Frysinger
* networking/ping.c (ping): Change the type of fromlen to socklen_t.
2005-04-16Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen
which were otherwise cluttering the global namespace.
2004-03-15Remove trailing whitespace. Update copyright to include 2004.Eric Andersen
2003-07-22Remove remaining libc5 support codeEric Andersen
2003-03-19Major coreutils update.Manuel Novoa III
2003-01-12Kiss Gabor noticed that ping compiled without BB_FEATURE_FANCY_PINGEric Andersen
would return 0 instead of EXIT_FAILURE when no response was received.
2002-06-06Per discussion with vodz, Tim's changes do not seem to make sense.Eric Andersen
Revert them. -Erik
2002-05-18ping return 1 if can't pingTim Riker
2002-03-21Doh! I broke ping when removing the nested function.Eric Andersen
This patch from vodz fixes it again.