aboutsummaryrefslogtreecommitdiff
path: root/ping.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-16 20:57:15 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-16 20:57:15 +0000
commitd353f773bab8c0f92e149a74400aa31b57da9d05 (patch)
treee8c416c791c690f661c513340662e4e98ff3464a /ping.c
parent3ab1d8193e335afa74e86a8d8e628158d7e503b9 (diff)
downloadbusybox-w32-d353f773bab8c0f92e149a74400aa31b57da9d05.tar.gz
busybox-w32-d353f773bab8c0f92e149a74400aa31b57da9d05.tar.bz2
busybox-w32-d353f773bab8c0f92e149a74400aa31b57da9d05.zip
Extract usage information into a separate file.
git-svn-id: svn://busybox.net/trunk/busybox@864 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'ping.c')
-rw-r--r--ping.c19
1 files changed, 1 insertions, 18 deletions
diff --git a/ping.c b/ping.c
index b2b4880ed..5f44a6816 100644
--- a/ping.c
+++ b/ping.c
@@ -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
177static 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
183static char *hostname = NULL; 177static char *hostname = NULL;
184 178
185static void noresp(int ign) 179static 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 */
270static 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
281static char *hostname = NULL; 264static char *hostname = NULL;
282static struct sockaddr_in pingaddr; 265static struct sockaddr_in pingaddr;
283static int pingsock = -1; 266static int pingsock = -1;