netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libnetfilter_cthelper.c File Reference
#include "internal.h"
#include <time.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <libmnl/libmnl.h>
#include <linux/netfilter/nfnetlink.h>
#include <linux/netfilter/nfnetlink_cthelper.h>
#include <libnetfilter_cthelper/libnetfilter_cthelper.h>
Include dependency graph for libnetfilter_cthelper.c:

Data Structures

struct  nfct_helper_policy
 
struct  nfct_helper
 

Macros

#define NF_CT_HELPER_NAME_MAX   16
 
#define NF_CT_HELPER_CLASS_MAX   4
 

Functions

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

Macro Definition Documentation

#define NF_CT_HELPER_CLASS_MAX   4

Referenced by nfct_helper_free().

#define NF_CT_HELPER_NAME_MAX   16