1 #ifndef _NF_CONNTRACK_ZONES_H
2 #define _NF_CONNTRACK_ZONES_H
4 #include <net/netfilter/nf_conntrack_extend.h>
6 #define NF_CT_DEFAULT_ZONE 0
8 struct nf_conntrack_zone
{
12 static inline u16
nf_ct_zone(const struct nf_conn
*ct
)
14 #ifdef CONFIG_NF_CONNTRACK_ZONES
15 struct nf_conntrack_zone
*nf_ct_zone
;
16 nf_ct_zone
= nf_ct_ext_find(ct
, NF_CT_EXT_ZONE
);
18 return nf_ct_zone
->id
;
20 return NF_CT_DEFAULT_ZONE
;
23 #endif /* _NF_CONNTRACK_ZONES_H */
This page took 0.030259 seconds and 5 git commands to generate.