diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-11-05 07:54:45 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-11-05 07:54:45 +0000 |
commit | e0d046f464ed2c6bb2d23d865629d38d6f6973e4 (patch) | |
tree | 0b988f2218c6be95d5623447f23e0df85abcda6a /sbin/ping6/ping6.c | |
parent | 20cbb69c13dd5fbd01567f8b6a34ee8d528fe4e1 (diff) |
one more mistake in ping6_timeval conversion
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r-- | sbin/ping6/ping6.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 4ce684f8c0a..a0a828c9be2 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.37 2001/11/05 07:50:37 itojun Exp $ */ +/* $OpenBSD: ping6.c,v 1.38 2001/11/05 07:54:44 itojun Exp $ */ /* $KAME: ping6.c,v 1.129 2001/06/22 13:16:02 itojun Exp $ */ /* @@ -140,10 +140,15 @@ static char sccsid[] = "@(#)ping.c 8.1 (Berkeley) 6/5/93"; #include "md5.h" #endif +struct ping6_timeval { + int32_t tv_sec; + int32_t tv_usec; +}; + #define MAXPACKETLEN 131072 #define IP6LEN 40 #define ICMP6ECHOLEN 8 /* icmp echo header len excluding time */ -#define ICMP6ECHOTMLEN sizeof(struct timeval) +#define ICMP6ECHOTMLEN sizeof(struct ping6_timeval) #define ICMP6_NIQLEN (ICMP6ECHOLEN + 8) /* FQDN case, 64 bits of nonce + 32 bits ttl */ #define ICMP6_NIRLEN (ICMP6ECHOLEN + 12) @@ -249,11 +254,6 @@ volatile sig_atomic_t seenint; volatile sig_atomic_t seeninfo; #endif -struct ping6_timeval { - int32_t tv_sec; - int32_t tv_usec; -}; - int main __P((int, char *[])); void fill __P((char *, char *)); int get_hoplim __P((struct msghdr *)); |