aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* 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.
* 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