summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremie Courreges-Anglas <jca@cvs.openbsd.org>2014-03-27 12:07:49 +0000
committerJeremie Courreges-Anglas <jca@cvs.openbsd.org>2014-03-27 12:07:49 +0000
commit86ec2bb6753a8d482e4361b71d9ca19d36e4368b (patch)
treeaddb503191e6b80a49de655671a886e72c9cffc8
parent63016f7a23a6eff858d1265b464a3219d64d41f2 (diff)
When enforcing TOS (Traffic Class), preserve the ECN bits, just as we do
with IPv4 packets. ok mikeb@
-rw-r--r--sys/net/pf_norm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c
index 614f6428803..f0342fc7191 100644
--- a/sys/net/pf_norm.c
+++ b/sys/net/pf_norm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_norm.c,v 1.164 2014/01/22 04:34:25 henning Exp $ */
+/* $OpenBSD: pf_norm.c,v 1.165 2014/03/27 12:07:48 jca Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
@@ -1464,7 +1464,7 @@ pf_scrub(struct mbuf *m, u_int16_t flags, sa_family_t af, u_int8_t min_ttl,
#ifdef INET6
if (af == AF_INET6) {
/* drugs are unable to explain such idiocy */
- h6->ip6_flow &= ~htonl(0x0ff00000);
+ h6->ip6_flow &= ~htonl(0x0fc00000);
h6->ip6_flow |= htonl(((u_int32_t)tos) << 20);
}
#endif