diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-10-12 10:58:26 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-10-12 10:58:26 +0000 |
commit | 31a9d043cb723d5df2239af530e703306d9975c9 (patch) | |
tree | 40e01a4aacbe3a873430b8b915fc47cd73f20cbf /usr.sbin | |
parent | 876e7ea96798e116de223e19fa924dd8f85f143e (diff) |
Make it compile without INET6, from Max Laier, ok deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/tcpdump/print-tcp.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.sbin/tcpdump/print-tcp.c b/usr.sbin/tcpdump/print-tcp.c index 9b6cd652bdc..0c9e9a88753 100644 --- a/usr.sbin/tcpdump/print-tcp.c +++ b/usr.sbin/tcpdump/print-tcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: print-tcp.c,v 1.17 2003/08/21 19:14:23 frantzen Exp $ */ +/* $OpenBSD: print-tcp.c,v 1.18 2003/10/12 10:58:25 dhartmei Exp $ */ /* * Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997 @@ -23,7 +23,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-tcp.c,v 1.17 2003/08/21 19:14:23 frantzen Exp $ (LBL)"; + "@(#) $Header: /cvs/OpenBSD/src/usr.sbin/tcpdump/print-tcp.c,v 1.18 2003/10/12 10:58:25 dhartmei Exp $ (LBL)"; #endif #include <sys/param.h> @@ -392,7 +392,11 @@ tcp_print(register const u_char *bp, register u_int length, } /* OS Fingerprint */ - if (oflag && ip6 == NULL && (flags & (TH_SYN|TH_ACK)) == TH_SYN) { + if (oflag && +#ifdef INET6 + ip6 == NULL && +#endif + (flags & (TH_SYN|TH_ACK)) == TH_SYN) { struct pf_osfp_enlist *head = NULL; struct pf_osfp_entry *fp; unsigned long left; |