summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMike Belopuhov <mikeb@cvs.openbsd.org>2014-11-11 11:37:06 +0000
committerMike Belopuhov <mikeb@cvs.openbsd.org>2014-11-11 11:37:06 +0000
commit189f873a2a0e52e63fc128497c3a610121f17f0d (patch)
tree31a280050cb31f5c561a35be246220394dc7e4f9 /sys/net
parent32b771be65a27ed9f49ed41342109eedc1ce0c6f (diff)
Ask networking stack to recalculate the ICMPv6 checksum in pf_route6
since we might have tweaked the addresses. Problem reported and fix test by Bastien Durel <bastien at geekwu ! org>, thanks! OK henning
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 923d20aac15..59513f9cd23 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.890 2014/11/01 21:40:38 mpi Exp $ */
+/* $OpenBSD: pf.c,v 1.891 2014/11/11 11:37:05 mikeb Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -5784,6 +5784,8 @@ pf_route6(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp,
}
}
+ in6_proto_cksum_out(m0, ifp);
+
/*
* If the packet is too large for the outgoing interface,
* send back an icmp6 error.