netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libnetfilter_cthelper.h File Reference
#include <sys/types.h>
#include <linux/netfilter/nfnetlink_cthelper.h>
Include dependency graph for libnetfilter_cthelper.h:
This graph shows which files directly or indirectly include this file:

Enumerations

enum  nfct_helper_policy_attr_type {
  NFCTH_ATTR_POLICY_NAME = 0,
  NFCTH_ATTR_POLICY_TIMEOUT,
  NFCTH_ATTR_POLICY_MAX
}
 
enum  nfct_helper_attr_type {
  NFCTH_ATTR_NAME = 0,
  NFCTH_ATTR_QUEUE_NUM,
  NFCTH_ATTR_PROTO_L3NUM,
  NFCTH_ATTR_PROTO_L4NUM,
  NFCTH_ATTR_PRIV_DATA_LEN,
  NFCTH_ATTR_POLICY,
  NFCTH_ATTR_POLICY1 = NFCTH_ATTR_POLICY,
  NFCTH_ATTR_POLICY2,
  NFCTH_ATTR_POLICY3,
  NFCTH_ATTR_POLICY4,
  NFCTH_ATTR_STATUS
}
 

Functions

struct nfct_helper_policynfct_helper_policy_alloc (void)
 nfct_helper_policy_alloc - allocate a new helper policy object More...
 
void nfct_helper_policy_free (struct nfct_helper_policy *p)
 nfct_helper_free - release one helper policy object More...
 
void nfct_helper_policy_attr_set (struct nfct_helper_policy *p, enum nfct_helper_policy_attr_type type, const void *data)
 nfct_helper_policy_attr_set - set one attribute of the helper object More...
 
void nfct_helper_policy_attr_set_str (struct nfct_helper_policy *p, enum nfct_helper_policy_attr_type type, const char *name)
 nfct_helper_attr_set_str - set one attribute the helper object More...
 
void nfct_helper_policy_attr_set_u32 (struct nfct_helper_policy *p, enum nfct_helper_policy_attr_type type, uint32_t value)
 
void nfct_helper_policy_attr_unset (struct nfct_helper_policy *p, enum nfct_helper_policy_attr_type type)
 
struct nfct_helpernfct_helper_alloc (void)
 nfct_helper_alloc - allocate a new helper object More...
 
void nfct_helper_free (struct nfct_helper *h)
 nfct_helper_free - release one helper object More...
 
void nfct_helper_attr_set (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type, const void *data)
 nfct_helper_attr_set - set one attribute of the helper object More...
 
void nfct_helper_attr_set_str (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type, const char *name)
 nfct_helper_attr_set_str - set one attribute the helper object More...
 
void nfct_helper_attr_set_u8 (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type, uint8_t value)
 
void nfct_helper_attr_set_u16 (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type, uint16_t value)
 
void nfct_helper_attr_set_u32 (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type, uint32_t value)
 
void nfct_helper_attr_unset (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type)
 nfct_helper_attr_unset - unset one attribute the helper object More...
 
const void * nfct_helper_attr_get (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type)
 nfct_helper_attr_get - get one attribute the helper object More...
 
const char * nfct_helper_attr_get_str (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type)
 nfct_helper_attr_get_str - get one attribute the helper object More...
 
uint8_t nfct_helper_attr_get_u8 (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type)
 nfct_helper_attr_get_u8 - get one attribute the helper object More...
 
uint16_t nfct_helper_attr_get_u16 (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type)
 nfct_helper_attr_get_u16 - get one attribute the helper object More...
 
uint32_t nfct_helper_attr_get_u32 (struct nfct_helper *nfct_helper, enum nfct_helper_attr_type type)
 nfct_helper_attr_get_u32 - get one attribute the helper object More...
 
struct nlmsghdrnfct_helper_nlmsg_build_hdr (char *buf, uint8_t cmd, uint16_t flags, uint32_t seq)
 nfct_helper_nlmsg_build_hdr - build netlink message header for nfct_helper subsystem More...
 
void nfct_helper_nlmsg_build_payload (struct nlmsghdr *nlh, struct nfct_helper *nfct_helper)
 nfct_helper_nlmsg_build_payload - build payload from helper object More...
 
int nfct_helper_nlmsg_parse_payload (const struct nlmsghdr *nlh, struct nfct_helper *nfct_helper)
 nfct_helper_nlmsg_parse_payload - set helper object attributes from message More...
 
int nfct_helper_snprintf (char *buf, size_t size, struct nfct_helper *nfct_helper, unsigned int type, unsigned int flags)
 nfct_helper_snprintf - print helper object into one buffer More...
 

Enumeration Type Documentation

Enumerator
NFCTH_ATTR_NAME 
NFCTH_ATTR_QUEUE_NUM 
NFCTH_ATTR_PROTO_L3NUM 
NFCTH_ATTR_PROTO_L4NUM 
NFCTH_ATTR_PRIV_DATA_LEN 
NFCTH_ATTR_POLICY 
NFCTH_ATTR_POLICY1 
NFCTH_ATTR_POLICY2 
NFCTH_ATTR_POLICY3 
NFCTH_ATTR_POLICY4 
NFCTH_ATTR_STATUS 
Enumerator
NFCTH_ATTR_POLICY_NAME 
NFCTH_ATTR_POLICY_TIMEOUT 
NFCTH_ATTR_POLICY_MAX 

Function Documentation

void nfct_helper_policy_attr_unset ( struct nfct_helper_policy p,
enum nfct_helper_policy_attr_type  type 
)