Commit 0024270e authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[IPV6] Fixed fragment check in ip6_output.c:ip6_fragment()

MTU / alignment check in ip6_fragment() was wrong;
first_len was not correct.
parent 34b2137e
......@@ -939,7 +939,7 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff*))
mtu = dst_pmtu(&rt->u.dst) - hlen - sizeof(struct frag_hdr);
if (skb_shinfo(skb)->frag_list) {
int first_len = 0;
int first_len = skb_pagelen(skb);
if (first_len - hlen > mtu ||
((first_len - hlen) & 7) ||
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment