aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* Patch from Bernhard Fischer to make a bunch of symbols staticEric Andersen2005-04-161-1/+4
| | | | which were otherwise cluttering the global namespace.
* Remove trailing whitespace. Update copyright to include 2004.Eric Andersen2004-03-151-5/+5
|
* Remove remaining libc5 support codeEric Andersen2003-07-221-80/+1
|
* Major coreutils update.Manuel Novoa III2003-03-191-13/+13
|
* Kiss Gabor noticed that ping compiled without BB_FEATURE_FANCY_PINGEric Andersen2003-01-121-2/+2
| | | | would return 0 instead of EXIT_FAILURE when no response was received.
* Per discussion with vodz, Tim's changes do not seem to make sense.Eric Andersen2002-06-061-5/+5
| | | | | Revert them. -Erik
* ping return 1 if can't pingTim Riker2002-05-181-5/+5
|
* Doh! I broke ping when removing the nested function.Eric Andersen2002-03-211-4/+4
| | | | This patch from vodz fixes it again.
* Cave to pressure (2 months later). Eliminate using aEric Andersen2002-03-201-7/+8
| | | | | nested function, which is a purely unremovable gcc-ism... -Erik
* 2002-01-30 Neal H Walfield <neal@cs.uml.edu>Matt Kraai2002-02-011-23/+18
| | | | | | | | | | | | | | | | | | | | | * 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.
* Major rework of the directory structure and the entire build system.Eric Andersen2001-10-241-4/+4
| | | | -Erik
* This is vodz' latest patch. Sorry it took so long...Eric Andersen2001-07-171-2/+1
| | | | | | | | | 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)
* Allow featureless ping to compile, and featureful ping to shrinkMatt Kraai2001-07-131-16/+3
| | | | (by Adam Slattery).
* Patch from vodz:Eric Andersen2001-07-121-7/+3
| | | | | | | Changed email address cmdedit API change optimizations for traceroute and md5sum added a new shared create_icmp_socket() function
* Patch from Lars Kellogg-Stedman <lars@larsshack.org> to fix bugEric Andersen2001-05-211-4/+4
| | | | #1130 (i.e. When you turn on features it should always ADD features)
* Whoops. Forgot the x.Matt Kraai2001-05-161-2/+2
|
* Add xgethostbyname and herror_msg* functions.Matt Kraai2001-05-161-14/+5
|
* Update how we detect if libc5 is in use.Eric Andersen2001-04-091-2/+2
| | | | -Erik
* Fix socklen_t for libc5Eric Andersen2001-03-141-3/+1
|
* It turns out that DODMALLOC was broken when I reorganized busybox.hEric Andersen2001-02-201-2/+2
| | | | | | 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
* This patch, put together by Manuel Novoa III, is a merge of workEric Andersen2001-02-141-6/+6
| | | | | | done by Evin Robertson (bug#1105) and work from Manuel to make usage messages occupy less space and simplify how usage messages are displayed.
* Removed trailing \n from error_msg{,_and_die} messages.Matt Kraai2001-01-311-7/+7
|
* Fix header file usage -- there were many unnecessary header files included inEric Andersen2001-01-271-1/+4
| | | | | | | 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
* Remove the warning messages. By consensus, netkit-tiny doesn'tEric Andersen2001-01-241-5/+1
| | | | need to happen.
* Fix spelling. s/maintainence/maintenance/Eric Andersen2001-01-241-2/+2
|