|
@@ -41,12 +41,13 @@ static unsigned int ipv4_conntrack_defrag(unsigned int hooknum,
|
|
int (*okfn)(struct sk_buff *))
|
|
int (*okfn)(struct sk_buff *))
|
|
{
|
|
{
|
|
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
|
|
#if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
|
|
|
|
+#if !defined(CONFIG_NF_NAT) && !defined(CONFIG_NF_NAT_MODULE)
|
|
/* Previously seen (loopback)? Ignore. Do this before
|
|
/* Previously seen (loopback)? Ignore. Do this before
|
|
fragment check. */
|
|
fragment check. */
|
|
if (skb->nfct)
|
|
if (skb->nfct)
|
|
return NF_ACCEPT;
|
|
return NF_ACCEPT;
|
|
#endif
|
|
#endif
|
|
-
|
|
|
|
|
|
+#endif
|
|
/* Gather fragments. */
|
|
/* Gather fragments. */
|
|
if (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) {
|
|
if (ip_hdr(skb)->frag_off & htons(IP_MF | IP_OFFSET)) {
|
|
if (nf_ct_ipv4_gather_frags(skb,
|
|
if (nf_ct_ipv4_gather_frags(skb,
|