diff options
author | Florian Westphal <fw@strlen.de> | 2014-05-05 00:03:34 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-05-07 15:27:59 -0400 |
commit | 418a31561d594a2b636c1e2fa94ecd9e1245abb1 (patch) | |
tree | 0545fad3593e0860c9e6efd509d8b5add34e8352 /tools | |
parent | ca6c5d4ad216d5942ae544bbf02503041bd802aa (diff) |
net: ipv6: send pkttoobig immediately if orig frag size > mtu
If conntrack defragments incoming ipv6 frags it stores largest original
frag size in ip6cb and sets ->local_df.
We must thus first test the largest original frag size vs. mtu, and not
vice versa.
Without this patch PKTTOOBIG is still generated in ip6_fragment() later
in the stack, but
1) IPSTATS_MIB_INTOOBIGERRORS won't increment
2) packet did (needlessly) traverse netfilter postrouting hook.
Fixes: fe6cc55f3a9 ("net: ip, ipv6: handle gso skbs in forwarding path")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions