aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c
AgeCommit message (Collapse)Author
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).
2001-07-12Patch from vodz:Eric Andersen
Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function
2001-05-21Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bugEric Andersen
#1130 (i.e. When you turn on features it should always ADD features)
2001-05-16Whoops. Forgot the x.Matt Kraai
2001-05-16Add xgethostbyname and herror_msg* functions.Matt Kraai
2001-04-09Update how we detect if libc5 is in use.Eric Andersen
-Erik
2001-03-14Fix socklen_t for libc5Eric Andersen
2001-02-20It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen
header file usage before the 0.49 release. To fix it, I had to move the '#include "busybox.h"' to the end of the list of #include files. -Erik
2001-02-14This patch, put together by Manuel Novoa III, is a merge of workEric Andersen
done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
2001-01-31Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai
2001-01-27Fix header file usage -- there were many unnecessary header files included inEric Andersen
busybox.h which slowed compiles. I left only what was needed and then fixed up all the apps to include their own header files. I also fixed naming for pwd.h and grp.h functions. Tested to compile and run with libc5, glibc, and uClibc. -Erik
2001-01-24Remove the warning messages. By consensus, netkit-tiny doesn'tEric Andersen
need to happen.
2001-01-24Fix spelling. s/maintainence/maintenance/Eric Andersen
2001-01-23#define -> static const int. Also got rid of some big static buffers.Mark Whitley
2001-01-22Warn about apps that will be going away in release 0.50Eric Andersen
-Erik
2000-12-22Use busybox error handling functions wherever possible.Matt Kraai
2000-12-18Change calls to error_msg.* and strerror to use perror_msg.*.Matt Kraai
2000-12-07Changed names of functions in utility.c and all affected files, to makeMark Whitley
compliant with the style guide. Everybody rebuild your tags file!
2000-12-01Stop using TRUE and FALSE for exit status.Matt Kraai