Lines Matching refs:ct
16 int nl_get_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct);
17 int nl_create_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct, int timeout);
18 int nl_update_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct, int timeout);
19 int nl_destroy_conntrack(struct nfct_handle *h, const struct nf_conntrack *ct);
21 static inline int ct_is_related(const struct nf_conntrack *ct)
23 return (nfct_attr_is_set(ct, ATTR_MASTER_L3PROTO) &&
24 nfct_attr_is_set(ct, ATTR_MASTER_L4PROTO) &&
25 ((nfct_attr_is_set(ct, ATTR_MASTER_IPV4_SRC) &&
26 nfct_attr_is_set(ct, ATTR_MASTER_IPV4_DST)) ||
27 (nfct_attr_is_set(ct, ATTR_MASTER_IPV6_SRC) &&
28 nfct_attr_is_set(ct, ATTR_MASTER_IPV6_DST))) &&
29 nfct_attr_is_set(ct, ATTR_MASTER_PORT_SRC) &&
30 nfct_attr_is_set(ct, ATTR_MASTER_PORT_DST));