Commit f36d6ab1 authored by Yan Zheng's avatar Yan Zheng Committed by David S. Miller

[IPV6]: Fix ipv6 fragment ID selection at slow path

Signed-Off-By: default avatarYan Zheng <yanzheng@21cn.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 444fc8fc
...@@ -666,7 +666,7 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) ...@@ -666,7 +666,7 @@ static int ip6_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *))
*/ */
fh->nexthdr = nexthdr; fh->nexthdr = nexthdr;
fh->reserved = 0; fh->reserved = 0;
if (frag_id) { if (!frag_id) {
ipv6_select_ident(skb, fh); ipv6_select_ident(skb, fh);
frag_id = fh->identification; frag_id = fh->identification;
} else } else
......
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