diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-02-01 15:20:17 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-02-01 15:20:17 +0000 |
commit | ef30427cae38fe7c0dad6385448209973beb68a0 (patch) | |
tree | cab41c757626eeb8e1f9a1ee85768404e9d6cb11 /sys/net/pf.c | |
parent | 382729a327736afd1eb25a08001773fe12139f0d (diff) |
Make it build without INET6 again.
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 408bb73aa82..073503393da 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.314 2003/01/31 19:36:39 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.315 2003/02/01 15:20:16 dhartmei Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -4118,7 +4118,9 @@ pf_check_proto_cksum(struct mbuf *m, int off, int len, u_int8_t p, sa_family_t a flag_bad = M_UDP_CSUM_IN_BAD; break; case IPPROTO_ICMP: +#ifdef INET6 case IPPROTO_ICMPV6: +#endif /* INET6 */ flag_ok = flag_bad = 0; break; default: @@ -4148,11 +4150,13 @@ pf_check_proto_cksum(struct mbuf *m, int off, int len, u_int8_t p, sa_family_t a sum = in4_cksum(m, p, off, len); } break; +#ifdef INET6 case AF_INET6: if (m->m_len < sizeof(struct ip6_hdr)) return (1); sum = in6_cksum(m, p, off, len); break; +#endif /* INET6 */ default: return (1); } @@ -4168,9 +4172,11 @@ pf_check_proto_cksum(struct mbuf *m, int off, int len, u_int8_t p, sa_family_t a case IPPROTO_ICMP: icmpstat.icps_checksum++; break; +#ifdef INET6 case IPPROTO_ICMPV6: icmp6stat.icp6s_checksum++; break; +#endif /* INET6 */ } return (1); } |