Browse Source

fix ipv6 TOS setting in kernel module

git.mgm/mediaproxy-ng/2.0
Richard Fuchs 14 years ago
parent
commit
1a22e740c8
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      kernel-module/xt_MEDIAPROXY.c

+ 2
- 1
kernel-module/xt_MEDIAPROXY.c View File

@ -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