7 #include <libnetfilter_conntrack/libnetfilter_conntrack.h>
8 #include <libnetfilter_conntrack/libnetfilter_conntrack_tcp.h>
18 struct nfct_handle *h;
19 struct nf_conntrack *master, *expected, *mask;
20 struct nf_expect *exp;
59 printf(
"TEST: add master conntrack ");
61 printf(
"(%d)(%s)\n", ret, strerror(errno));
128 printf(
"TEST: create expectation ");
130 printf(
"(%d)(%s)\n", ret, strerror(errno));
136 ret == -1 ? exit(EXIT_FAILURE) : exit(EXIT_SUCCESS);
void nfexp_set_attr(struct nf_expect *exp, const enum nf_expect_attr type, const void *value)
void nfct_set_attr_u32(struct nf_conntrack *ct, const enum nf_conntrack_attr type, uint32_t value)
int nfct_query(struct nfct_handle *h, const enum nf_conntrack_query query, const void *data)
void nfexp_set_attr_u32(struct nf_expect *exp, const enum nf_expect_attr type, uint32_t value)
int nfct_close(struct nfct_handle *cth)
int nfexp_query(struct nfct_handle *h, const enum nf_conntrack_query qt, const void *data)
void nfct_destroy(struct nf_conntrack *ct)
int nfct_setobjopt(struct nf_conntrack *ct, unsigned int option)
struct nf_expect * nfexp_new(void)
void nfct_set_attr_u16(struct nf_conntrack *ct, const enum nf_conntrack_attr type, uint16_t value)
struct nf_conntrack * nfct_new(void)
void nfct_set_attr_u8(struct nf_conntrack *ct, const enum nf_conntrack_attr type, uint8_t value)
struct nfct_handle * nfct_open(uint8_t, unsigned)