Lines Matching refs:id
45 static inline bool __nf_ct_ext_exist(const struct nf_ct_ext *ext, u8 id)
47 return !!ext->offset[id];
50 static inline bool nf_ct_ext_exist(const struct nf_conn *ct, u8 id)
52 return (ct->ext && __nf_ct_ext_exist(ct->ext, id));
55 void *__nf_ct_ext_find(const struct nf_ct_ext *ext, u8 id);
57 static inline void *nf_ct_ext_find(const struct nf_conn *ct, u8 id)
61 if (!ext || !__nf_ct_ext_exist(ext, id))
65 return __nf_ct_ext_find(ext, id);
67 return (void *)ct->ext + ct->ext->offset[id];
71 void *nf_ct_ext_add(struct nf_conn *ct, enum nf_ct_ext_id id, gfp_t gfp);
73 /* ext genid. if ext->id != ext_genid, extensions cannot be used