From 1a22e740c8848bb37501c131df9f98df132dca99 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 20 Dec 2011 15:52:13 +0000 Subject: [PATCH] fix ipv6 TOS setting in kernel module --- kernel-module/xt_MEDIAPROXY.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel-module/xt_MEDIAPROXY.c b/kernel-module/xt_MEDIAPROXY.c index 78f5a614f..4ae1de4f0 100644 --- a/kernel-module/xt_MEDIAPROXY.c +++ b/kernel-module/xt_MEDIAPROXY.c @@ -1111,7 +1111,8 @@ static int send_proxy_packet6(struct sk_buff *skb, struct mp_address *src, struc }; *ih = (struct ipv6hdr) { .version = 6, - .priority = tos, + .priority = (tos & 0xf0) >> 4, + .flow_lbl = {(tos & 0xf) << 4, 0, 0}, .payload_len = htons(datalen), .nexthdr = IPPROTO_UDP, .hop_limit = 64,