diff options
Diffstat (limited to 'ping.c')
-rw-r--r-- | ping.c | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: ping.c,v 1.22 2000/07/14 06:49:52 andersen Exp $ | 3 | * $Id: ping.c,v 1.23 2000/07/16 20:57:15 kraai Exp $ |
4 | * Mini ping implementation for busybox | 4 | * Mini ping implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -174,12 +174,6 @@ static int in_cksum(unsigned short *buf, int sz) | |||
174 | 174 | ||
175 | /* simple version */ | 175 | /* simple version */ |
176 | #ifdef BB_FEATURE_SIMPLE_PING | 176 | #ifdef BB_FEATURE_SIMPLE_PING |
177 | static const char *ping_usage = "ping host\n" | ||
178 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
179 | "\nSend ICMP ECHO_REQUEST packets to network hosts\n" | ||
180 | #endif | ||
181 | ; | ||
182 | |||
183 | static char *hostname = NULL; | 177 | static char *hostname = NULL; |
184 | 178 | ||
185 | static void noresp(int ign) | 179 | static void noresp(int ign) |
@@ -267,17 +261,6 @@ extern int ping_main(int argc, char **argv) | |||
267 | 261 | ||
268 | #else /* ! BB_FEATURE_SIMPLE_PING */ | 262 | #else /* ! BB_FEATURE_SIMPLE_PING */ |
269 | /* full(er) version */ | 263 | /* full(er) version */ |
270 | static const char *ping_usage = "ping [OPTION]... host\n" | ||
271 | #ifndef BB_FEATURE_TRIVIAL_HELP | ||
272 | "\nSend ICMP ECHO_REQUEST packets to network hosts.\n\n" | ||
273 | "Options:\n" | ||
274 | "\t-c COUNT\tSend only COUNT pings.\n" | ||
275 | "\t-s SIZE\t\tSend SIZE data bytes in packets (default=56).\n" | ||
276 | "\t-q\t\tQuiet mode, only displays output at start\n" | ||
277 | "\t\t\tand when finished.\n" | ||
278 | #endif | ||
279 | ; | ||
280 | |||
281 | static char *hostname = NULL; | 264 | static char *hostname = NULL; |
282 | static struct sockaddr_in pingaddr; | 265 | static struct sockaddr_in pingaddr; |
283 | static int pingsock = -1; | 266 | static int pingsock = -1; |