提交 5f547391 编写于 作者: J Joe Stringer 提交者: Pablo Neira Ayuso

netfilter: nf_defrag_ipv4: Drop redundant ip_send_check()

Since commit 0848f642 ("inet: frags: fix defragmented packet's IP
header for af_packet"), ip_send_check() would be called twice for
defragmentation that occurs from netfilter ipv4 defrag hooks. Remove the
extra call.
Signed-off-by: NJoe Stringer <joe@ovn.org>
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
上级 a7ed31cf
......@@ -31,10 +31,8 @@ static int nf_ct_ipv4_gather_frags(struct net *net, struct sk_buff *skb,
err = ip_defrag(net, skb, user);
local_bh_enable();
if (!err) {
ip_send_check(ip_hdr(skb));
if (!err)
skb->ignore_df = 1;
}
return err;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册