diff options
Diffstat (limited to 'networking/ping6.c')
-rw-r--r-- | networking/ping6.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/ping6.c b/networking/ping6.c index d9d0dd343..72867f346 100644 --- a/networking/ping6.c +++ b/networking/ping6.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: ping6.c,v 1.5 2003/05/22 07:10:22 andersen Exp $ | 3 | * $Id: ping6.c,v 1.6 2004/03/15 08:28:48 andersen 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> |
@@ -27,7 +27,7 @@ | |||
27 | * | 27 | * |
28 | * This code is derived from software contributed to Berkeley by | 28 | * This code is derived from software contributed to Berkeley by |
29 | * Mike Muuss. | 29 | * Mike Muuss. |
30 | * | 30 | * |
31 | * Original copyright notice is retained at the end of this file. | 31 | * Original copyright notice is retained at the end of this file. |
32 | * | 32 | * |
33 | * This version is an adaptation of ping.c from busybox. | 33 | * This version is an adaptation of ping.c from busybox. |
@@ -162,7 +162,7 @@ static unsigned long tmin = ULONG_MAX, tmax, tsum; | |||
162 | static char rcvd_tbl[MAX_DUP_CHK / 8]; | 162 | static char rcvd_tbl[MAX_DUP_CHK / 8]; |
163 | 163 | ||
164 | # ifdef CONFIG_FEATURE_FANCY_PING | 164 | # ifdef CONFIG_FEATURE_FANCY_PING |
165 | extern | 165 | extern |
166 | # endif | 166 | # endif |
167 | struct hostent *hostent; | 167 | struct hostent *hostent; |
168 | 168 | ||
@@ -302,12 +302,12 @@ static void unpack(char *packet, int sz, struct sockaddr_in6 *from, int hoplimit | |||
302 | inet_ntop(AF_INET6, (struct in_addr6 *) &pingaddr.sin6_addr, | 302 | inet_ntop(AF_INET6, (struct in_addr6 *) &pingaddr.sin6_addr, |
303 | buf, sizeof(buf)), | 303 | buf, sizeof(buf)), |
304 | icmppkt->icmp6_seq); | 304 | icmppkt->icmp6_seq); |
305 | printf(" ttl=%d time=%lu.%lu ms", hoplimit, | 305 | printf(" ttl=%d time=%lu.%lu ms", hoplimit, |
306 | triptime / 10, triptime % 10); | 306 | triptime / 10, triptime % 10); |
307 | if (dupflag) | 307 | if (dupflag) |
308 | printf(" (DUP!)"); | 308 | printf(" (DUP!)"); |
309 | printf("\n"); | 309 | printf("\n"); |
310 | } else | 310 | } else |
311 | if (icmppkt->icmp6_type != ICMP6_ECHO_REQUEST) | 311 | if (icmppkt->icmp6_type != ICMP6_ECHO_REQUEST) |
312 | bb_error_msg("Warning: Got ICMP %d (%s)", | 312 | bb_error_msg("Warning: Got ICMP %d (%s)", |
313 | icmppkt->icmp6_type, icmp6_type_name (icmppkt->icmp6_type)); | 313 | icmppkt->icmp6_type, icmp6_type_name (icmppkt->icmp6_type)); |
@@ -494,8 +494,8 @@ extern int ping6_main(int argc, char **argv) | |||
494 | * notice, this list of conditions and the following disclaimer in the | 494 | * notice, this list of conditions and the following disclaimer in the |
495 | * documentation and/or other materials provided with the distribution. | 495 | * documentation and/or other materials provided with the distribution. |
496 | * | 496 | * |
497 | * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change | 497 | * 3. <BSD Advertising Clause omitted per the July 22, 1999 licensing change |
498 | * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> | 498 | * ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change> |
499 | * | 499 | * |
500 | * 4. Neither the name of the University nor the names of its contributors | 500 | * 4. Neither the name of the University nor the names of its contributors |
501 | * may be used to endorse or promote products derived from this software | 501 | * may be used to endorse or promote products derived from this software |