aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c
AgeCommit message (Collapse)Author
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.
2002-03-20Cave to pressure (2 months later). Eliminate using aEric Andersen
nested function, which is a purely unremovable gcc-ism... -Erik
2002-02-012002-01-30 Neal H Walfield <neal@cs.uml.edu>Matt Kraai
* networking/ping.c (hostname): Removed. [CONFIG_FEATURE_FANCY_PING] (noresp): Moved from here . . . [CONFIG_FEATURE_FANCY_PING] (ping:noresp): . . . to here. Use H->h_name, not hostname. [CONFIG_FEATURE_FANCY_PING] (ping): Do not copy H->h_name into hostname. Use H->h_name directly. [!CONFIG_FEATURE_FANCY_PING] (hostent): New global variable. [!CONFIG_FEATURE_FANCY_PING] (pingstats): Use hostent in favor of the now obsolete hostname global variable. [!CONFIG_FEATURE_FANCY_PING] (ping): Likewise. No need to copy H; use hostent instead. [!CONFIG_FEATURE_FANCY_PING] (ntransmitted, nreceived, nrepeats, pingcount, myid, options, tmax, tsum): Removed superfluous zero initializers.
2001-10-24Major rework of the directory structure and the entire build system.Eric Andersen
-Erik
2001-07-17This is vodz' latest patch. Sorry it took so long...Eric Andersen
1) ping cleanup (compile fix from this patch already applied). 2) traceroute call not spare ntohl() now (and reduce size); 3) Fix for functions not declared static in insmod, ash, vi and mount. 4) a more simple API cmdedit :)) 5) adds "stopped jobs" warning to ash on Ctrl-D and fixes "ignoreeof" option 6) reduce exporting library function index->strchr (traceroute), bzero->memset (syslogd)
2001-07-13Allow featureless ping to compile, and featureful ping to shrinkMatt Kraai
(by Adam Slattery).