Lines Matching refs:ct
36 static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id)
38 return (ct->ext && __nf_ct_ext_exist(ct->ext, id));
41 static inline void *__nf_ct_ext_find(const struct nf_conn *ct, u8 id)
43 if (!nf_ct_ext_exist(ct, id))
46 return (void *)ct->ext + ct->ext->offset[id];
52 extern void __nf_ct_ext_destroy(struct nf_conn *ct);
53 static inline void nf_ct_ext_destroy(struct nf_conn *ct)
55 if (ct->ext)
56 __nf_ct_ext_destroy(ct);
62 static inline void nf_ct_ext_free(struct nf_conn *ct)
64 if (ct->ext)
65 kfree(ct->ext);
70 __nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp);
71 #define nf_ct_ext_add(ct, id, gfp) \
72 ((id##_TYPE *)__nf_ct_ext_add((ct), (id), (gfp)))
78 void (*destroy)(struct nf_conn *ct);