diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/ip_output.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index b0b2e3059f11..d979710684b2 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c | |||
@@ -469,6 +469,10 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) | |||
469 | 469 | ||
470 | hlen = iph->ihl * 4; | 470 | hlen = iph->ihl * 4; |
471 | mtu = dst_mtu(&rt->u.dst) - hlen; /* Size of data space */ | 471 | mtu = dst_mtu(&rt->u.dst) - hlen; /* Size of data space */ |
472 | #ifdef CONFIG_BRIDGE_NETFILTER | ||
473 | if (skb->nf_bridge) | ||
474 | mtu -= nf_bridge_mtu_reduction(skb); | ||
475 | #endif | ||
472 | IPCB(skb)->flags |= IPSKB_FRAG_COMPLETE; | 476 | IPCB(skb)->flags |= IPSKB_FRAG_COMPLETE; |
473 | 477 | ||
474 | /* When frag_list is given, use it. First, check its validity: | 478 | /* When frag_list is given, use it. First, check its validity: |