]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/netfilter/nf_conntrack.h
netfilter: nf_conntrack: support conntrack templates
[net-next-2.6.git] / include / net / netfilter / nf_conntrack.h
index a0904adfb8f7aba343152a5af47aa7e818c3b39d..5043d61c99a744b997256159e5546dd0b03e9dea 100644 (file)
@@ -272,6 +272,11 @@ nf_conntrack_alloc(struct net *net,
                   const struct nf_conntrack_tuple *repl,
                   gfp_t gfp);
 
+static inline int nf_ct_is_template(const struct nf_conn *ct)
+{
+       return test_bit(IPS_TEMPLATE_BIT, &ct->status);
+}
+
 /* It's confirmed if it is, or has been in the hash table. */
 static inline int nf_ct_is_confirmed(struct nf_conn *ct)
 {