6 #include <libnetfilter_conntrack/libnetfilter_conntrack.h>
8 static int cb(
enum nf_conntrack_msg_type type,
17 return NFCT_CB_CONTINUE;
23 uint8_t family = AF_INET;
24 struct nfct_handle *h;
35 printf(
"TEST: dumo expectation ");
37 printf(
"(%d)(%s)\n", ret, strerror(errno));
43 ret == -1 ? exit(EXIT_FAILURE) : exit(EXIT_SUCCESS);
int nfct_close(struct nfct_handle *cth)
int nfexp_query(struct nfct_handle *h, const enum nf_conntrack_query qt, const void *data)
int nfexp_snprintf(char *buf, unsigned int size, const struct nf_expect *exp, const unsigned int msg_type, const unsigned int out_type, const unsigned int out_flags)
int nfexp_callback_register(struct nfct_handle *h, enum nf_conntrack_msg_type type, int(*cb)(enum nf_conntrack_msg_type type, struct nf_expect *exp, void *data), void *data)
struct nfct_handle * nfct_open(uint8_t, unsigned)