diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-10-30 11:35:11 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-10-30 11:35:11 +0000 |
commit | 6eee17936e90f5a76d0a261c3bca3ad0ecc05202 (patch) | |
tree | eba20af0e300daf97b92050dd8e26fff95415800 /sys/net/pf.c | |
parent | ef7b64c0df2910f5e62dd65c19415472747744e9 (diff) |
Allow to compile a kernel without INET6.
ok henning@
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r-- | sys/net/pf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index 2ea1f75ae75..07ae04e4f1c 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.856 2013/10/30 11:21:26 mikeb Exp $ */ +/* $OpenBSD: pf.c,v 1.857 2013/10/30 11:35:10 mpi Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -6785,10 +6785,12 @@ pf_cksum(struct pf_pdesc *pd, struct mbuf *m) pd->hdr.icmp->icmp_cksum = 0; m->m_pkthdr.csum_flags |= M_ICMP_CSUM_OUT; break; +#ifdef INET6 case IPPROTO_ICMPV6: pd->hdr.icmp6->icmp6_cksum = 0; m->m_pkthdr.csum_flags |= M_ICMP_CSUM_OUT; break; +#endif /* INET6 */ default: /* nothing */ break; |