netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
expect.c File Reference
#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>
Include dependency graph for expect.c:

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)
 

Function Documentation

int cthelper_add_expect ( struct nf_expect exp)

References NFCT_Q_CREATE_UPDATE.

int cthelper_del_expect ( struct nf_expect exp)

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 
)
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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function: