#include "helper.h"#include <stdio.h>#include <string.h>#include <limits.h>#include <errno.h>#include <sys/types.h>#include <sys/stat.h>#include <unistd.h>#include <dlfcn.h>
Functions | |
| int | cthelper_expect_init (struct nf_expect *exp, struct nf_conntrack *master, uint32_t class, union nfct_attr_grp_addr *saddr, union nfct_attr_grp_addr *daddr, uint8_t l4proto, uint16_t *sport, uint16_t *dport, uint32_t flags) |
| int | cthelper_add_expect (struct nf_expect *exp) |
| int | cthelper_del_expect (struct nf_expect *exp) |
| void | cthelper_get_addr_src (struct nf_conntrack *ct, int dir, union nfct_attr_grp_addr *addr) |
| void | cthelper_get_addr_dst (struct nf_conntrack *ct, int dir, union nfct_attr_grp_addr *addr) |
| void | cthelper_get_port_src (struct nf_conntrack *ct, int dir, uint16_t *port) |
| void | cthelper_get_port_dst (struct nf_conntrack *ct, int dir, uint16_t *port) |
References NFCT_Q_CREATE_UPDATE.
References NFCT_Q_DESTROY.
| int cthelper_expect_init | ( | struct nf_expect * | exp, |
| struct nf_conntrack * | master, | ||
| uint32_t | class, | ||
| union nfct_attr_grp_addr * | saddr, | ||
| union nfct_attr_grp_addr * | daddr, | ||
| uint8_t | l4proto, | ||
| uint16_t * | sport, | ||
| uint16_t * | dport, | ||
| uint32_t | flags | ||
| ) |
References ATTR_EXP_EXPECTED, ATTR_EXP_FLAGS, ATTR_EXP_MASK, ATTR_EXP_MASTER, ATTR_IPV4_DST, ATTR_IPV4_SRC, ATTR_IPV6_DST, ATTR_IPV6_SRC, ATTR_L3PROTO, ATTR_L4PROTO, ATTR_PORT_DST, ATTR_PORT_SRC, nfct_attr_grp_addr::ip, nfct_attr_grp_addr::ip6, mask, nfct_destroy(), nfct_get_attr_u8(), nfct_new(), nfct_set_attr(), nfct_set_attr_u16(), nfct_set_attr_u32(), nfct_set_attr_u8(), nfexp_set_attr(), and nfexp_set_attr_u32().

| void cthelper_get_addr_dst | ( | struct nf_conntrack * | ct, |
| int | dir, | ||
| union nfct_attr_grp_addr * | addr | ||
| ) |
References ATTR_GRP_ORIG_ADDR_DST, ATTR_GRP_REPL_ADDR_DST, MYCT_DIR_ORIG, MYCT_DIR_REPL, and nfct_get_attr_grp().

| void cthelper_get_addr_src | ( | struct nf_conntrack * | ct, |
| int | dir, | ||
| union nfct_attr_grp_addr * | addr | ||
| ) |
References ATTR_GRP_ORIG_ADDR_SRC, ATTR_GRP_REPL_ADDR_SRC, MYCT_DIR_ORIG, MYCT_DIR_REPL, and nfct_get_attr_grp().

| void cthelper_get_port_dst | ( | struct nf_conntrack * | ct, |
| int | dir, | ||
| uint16_t * | port | ||
| ) |
References ATTR_PORT_DST, ATTR_REPL_PORT_DST, MYCT_DIR_ORIG, MYCT_DIR_REPL, and nfct_get_attr_u16().

| void cthelper_get_port_src | ( | struct nf_conntrack * | ct, |
| int | dir, | ||
| uint16_t * | port | ||
| ) |
References ATTR_PORT_SRC, ATTR_REPL_PORT_SRC, MYCT_DIR_ORIG, MYCT_DIR_REPL, and nfct_get_attr_u16().
