summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_osfp.c
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2006-12-13 18:14:10 +0000
committeritojun <itojun@openbsd.org>2006-12-13 18:14:10 +0000
commitcddd254071032df870c5f7054b9dbfaa73504d38 (patch)
tree5d64246f360bbfcbdde7535fcf10b56ab34a63e6 /sys/net/pf_osfp.c
parentinsufficient testing, martin, please do not be a moron (diff)
downloadwireguard-openbsd-cddd254071032df870c5f7054b9dbfaa73504d38.tar.xz
wireguard-openbsd-cddd254071032df870c5f7054b9dbfaa73504d38.zip
wrap ipv6 portion with #ifdef INET6. from cmetz
Diffstat (limited to 'sys/net/pf_osfp.c')
-rw-r--r--sys/net/pf_osfp.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/net/pf_osfp.c b/sys/net/pf_osfp.c
index 1f55e136b02..15dca8e1fbd 100644
--- a/sys/net/pf_osfp.c
+++ b/sys/net/pf_osfp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_osfp.c,v 1.11 2006/12/13 05:10:15 itojun Exp $ */
+/* $OpenBSD: pf_osfp.c,v 1.12 2006/12/13 18:14:10 itojun Exp $ */
/*
* Copyright (c) 2003 Mike Frantzen <frantzen@w4g.org>
@@ -151,7 +151,9 @@ pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const st
sizeof(struct sockaddr_in), srcname, sizeof(srcname),
NULL, 0, NI_NUMERICHOST);
#endif
- } else if (ip6) {
+ }
+#ifdef INET6
+ else if (ip6) {
#ifndef _KERNEL
struct sockaddr_in6 sin6;
#endif
@@ -173,7 +175,9 @@ pf_osfp_fingerprint_hdr(const struct ip *ip, const struct ip6_hdr *ip6, const st
sizeof(struct sockaddr_in6), srcname, sizeof(srcname),
NULL, 0, NI_NUMERICHOST);
#endif
- } else
+ }
+#endif
+ else
return (NULL);
fp.fp_wsize = ntohs(tcp->th_win);