Re: [PATCH] Allow fragmentation of VLAN packets traversing a bridge.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Saikiran Madugula wrote:
Patrick McHardy wrote:
-    if (skb->protocol == htons(ETH_P_IP) &&
+    if ((skb->protocol == htons(ETH_P_IP) || IS_VLAN_IP(skb)) &&
         skb->len > skb->dev->mtu &&
         !skb_is_gso(skb))
         return ip_fragment(skb, br_dev_queue_push_xmit);
Please add an additional check for skb->nfct != NULL to make sure
that this only refragments packets defragmented by conntrack.

Thanks for the feedback, skb->nfct is present only if CONFIG_NF_CONNTRACK or
CONFIG_NF_CONNTRACK_MODULE is defined. Was wondering if the entire check before
ip_fragment is necessary if NF_CONNTRACK is not defined. If not, I will post
updated patch as per your suggestion.

Good point. Yes, everything related to fragmenting is only needed
with NF_CONNTRACK, so an additional ifdef makes sense.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux