fix ipv6 TOS setting in kernel module

remotes/origin/2.0
Richard Fuchs 14 years ago
parent cf5ac6752e
commit 1a22e740c8

@ -1111,7 +1111,8 @@ static int send_proxy_packet6(struct sk_buff *skb, struct mp_address *src, struc
}; };
*ih = (struct ipv6hdr) { *ih = (struct ipv6hdr) {
.version = 6, .version = 6,
.priority = tos, .priority = (tos & 0xf0) >> 4,
.flow_lbl = {(tos & 0xf) << 4, 0, 0},
.payload_len = htons(datalen), .payload_len = htons(datalen),
.nexthdr = IPPROTO_UDP, .nexthdr = IPPROTO_UDP,
.hop_limit = 64, .hop_limit = 64,

Loading…
Cancel
Save