diff options
author | Hakan Olsson <ho@cvs.openbsd.org> | 2000-10-03 14:21:58 +0000 |
---|---|---|
committer | Hakan Olsson <ho@cvs.openbsd.org> | 2000-10-03 14:21:58 +0000 |
commit | 11ea47c17193f4dfba0149742e2678058551a2eb (patch) | |
tree | deb56a90cfa4c5be5177cdffc1fc3c15383b2be3 /usr.sbin/tcpdump/print-cnfp.c | |
parent | 23388695ba5e97074c78403599072d12c67c3c2b (diff) |
Compile with -Wall. Add $OpenBSD$. (jakob@ ok)
Diffstat (limited to 'usr.sbin/tcpdump/print-cnfp.c')
-rw-r--r-- | usr.sbin/tcpdump/print-cnfp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/tcpdump/print-cnfp.c b/usr.sbin/tcpdump/print-cnfp.c index 805762240cf..9bf2b59c87c 100644 --- a/usr.sbin/tcpdump/print-cnfp.c +++ b/usr.sbin/tcpdump/print-cnfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-cnfp.c,v 1.2 1998/06/25 20:26:59 mickey Exp $ */ +/* $OpenBSD: print-cnfp.c,v 1.3 2000/10/03 14:21:56 ho Exp $ */ /* * Copyright (c) 1998 Michael Shalayeff @@ -39,6 +39,7 @@ #include <netinet/in.h> #include <netinet/tcp.h> +#include <arpa/inet.h> #include <stdio.h> #include <string.h> @@ -55,9 +56,9 @@ struct nfhdr { }; struct nfrec { - in_addr_t src_ina; - in_addr_t dst_ina; - in_addr_t nhop_ina; + struct in_addr src_ina; + struct in_addr dst_ina; + struct in_addr nhop_ina; u_int32_t ifaces; /* src,dst ifaces */ u_int32_t packets; u_int32_t octets; @@ -79,7 +80,6 @@ cnfp_print(register const u_char *cp, u_int len, register const u_char *bp) struct protoent *pent; int nrecs, ver; time_t t; - char *p; ip = (struct ip *)bp; nh = (struct nfhdr *)cp; |