summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@conan.davemloft.net>2011-06-17 03:38:01 +0200
committerDavid S. Miller <davem@conan.davemloft.net>2011-06-17 03:38:01 +0200
commit3009adf5acb2245216651318c2226812fd1b01a6 (patch)
tree3fa6a085be2eab409aec447ab8bd7c4737321688 /include
parentnet/hplance: hplance_init() should be __devinit (diff)
parentnetfilter: nf_nat: avoid double seq_adjust for loopback (diff)
downloadlinux-3009adf5acb2245216651318c2226812fd1b01a6.tar.xz
linux-3009adf5acb2245216651318c2226812fd1b01a6.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-2.6
Diffstat (limited to 'include')
-rw-r--r--include/net/netfilter/nf_conntrack.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_conntrack.h b/include/net/netfilter/nf_conntrack.h
index c7c42e7acc31..5d4f8e586e32 100644
--- a/include/net/netfilter/nf_conntrack.h
+++ b/include/net/netfilter/nf_conntrack.h
@@ -307,6 +307,12 @@ static inline int nf_ct_is_untracked(const struct nf_conn *ct)
return test_bit(IPS_UNTRACKED_BIT, &ct->status);
}
+/* Packet is received from loopback */
+static inline bool nf_is_loopback_packet(const struct sk_buff *skb)
+{
+ return skb->dev && skb->skb_iif && skb->dev->flags & IFF_LOOPBACK;
+}
+
extern int nf_conntrack_set_hashsize(const char *val, struct kernel_param *kp);
extern unsigned int nf_conntrack_htable_size;
extern unsigned int nf_conntrack_max;