diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2006-12-13 18:14:11 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2006-12-13 18:14:11 +0000 |
commit | a172e7be582050e49e428c461f5de6e9a45116c0 (patch) | |
tree | 9b66a714716c2c5ffbfb253baa9af44632e434d4 | |
parent | 71ab4e39db7417fd9798bd979679533c9de3a6b8 (diff) |
wrap ipv6 portion with #ifdef INET6. from cmetz
-rw-r--r-- | sys/net/pf_osfp.c | 10 |
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); |