GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / include / net / netfilter / nf_conntrack_zones.h
blob034efe8d45a544ac9557724b4e40359398dd1279
1 #ifndef _NF_CONNTRACK_ZONES_H
2 #define _NF_CONNTRACK_ZONES_H
4 #define NF_CT_DEFAULT_ZONE 0
6 #if defined(CONFIG_NF_CONNTRACK) || defined(CONFIG_NF_CONNTRACK_MODULE)
7 #include <net/netfilter/nf_conntrack_extend.h>
9 struct nf_conntrack_zone {
10 u16 id;
13 static inline u16 nf_ct_zone(const struct nf_conn *ct)
15 #ifdef CONFIG_NF_CONNTRACK_ZONES
16 struct nf_conntrack_zone *nf_ct_zone;
17 nf_ct_zone = nf_ct_ext_find(ct, NF_CT_EXT_ZONE);
18 if (nf_ct_zone)
19 return nf_ct_zone->id;
20 #endif
21 return NF_CT_DEFAULT_ZONE;
24 #endif /* CONFIG_NF_CONNTRACK || CONFIG_NF_CONNTRACK_MODULE */
25 #endif /* _NF_CONNTRACK_ZONES_H */