diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-07-18 21:03:11 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2011-07-18 21:03:11 +0000 |
commit | 86f12796024ce8b42166d8cc9d957b0b13b23a97 (patch) | |
tree | f7cd718d55d6977cee6d7ff6025a3e497ed5b3f1 /sys/net | |
parent | bc0e888228d8e5e187edc847957f68c50ebfb6eb (diff) |
unbreak set-tos for ipv6; reported by babut at yandex dot ru,
with input and ok from bluhm and claudio
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/pf_norm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c index e0b946d4210..cf30c5b1048 100644 --- a/sys/net/pf_norm.c +++ b/sys/net/pf_norm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_norm.c,v 1.139 2011/07/07 20:46:36 bluhm Exp $ */ +/* $OpenBSD: pf_norm.c,v 1.140 2011/07/18 21:03:10 mikeb Exp $ */ /* * Copyright 2001 Niels Provos <provos@citi.umich.edu> @@ -1444,7 +1444,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(0x0ff00000); h6->ip6_flow |= htonl(((u_int32_t)tos) << 20); } #endif |