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

Data Structures

struct  nfct_timeout
 
struct  _container_policy_cb
 

Functions

struct nfct_timeoutnfct_timeout_alloc (void)
 nfct_timeout_alloc - allocate a new conntrack timeout object More...
 
 EXPORT_SYMBOL (nfct_timeout_alloc)
 
void nfct_timeout_free (struct nfct_timeout *t)
 nfct_timeout_free - release one conntrack timeout object More...
 
 EXPORT_SYMBOL (nfct_timeout_free)
 
int nfct_timeout_attr_set (struct nfct_timeout *t, uint32_t type, const void *data)
 nfct_timeout_attr_set - set one attribute of the conntrack timeout object More...
 
 EXPORT_SYMBOL (nfct_timeout_attr_set)
 
int nfct_timeout_attr_set_u8 (struct nfct_timeout *t, uint32_t type, uint8_t data)
 nfct_timeout_attr_set_u8 - set one attribute of the conntrack timeout object More...
 
 EXPORT_SYMBOL (nfct_timeout_attr_set_u8)
 
int nfct_timeout_attr_set_u16 (struct nfct_timeout *t, uint32_t type, uint16_t data)
 nfct_timeout_attr_set_u16 - set one attribute of the conntrack timeout object More...
 
 EXPORT_SYMBOL (nfct_timeout_attr_set_u16)
 
void nfct_timeout_attr_unset (struct nfct_timeout *t, uint32_t type)
 nfct_timeout_attr_unset - unset one attribute of the conntrack timeout object More...
 
 EXPORT_SYMBOL (nfct_timeout_attr_unset)
 
int nfct_timeout_policy_attr_set_u32 (struct nfct_timeout *t, uint32_t type, uint32_t data)
 nfct_timeout_policy_attr_set_u32 - set one attribute of the policy More...
 
 EXPORT_SYMBOL (nfct_timeout_policy_attr_set_u32)
 
void nfct_timeout_policy_attr_unset (struct nfct_timeout *t, uint32_t type)
 nfct_timeout_policy_attr_unset - unset one attribute of the policy More...
 
 EXPORT_SYMBOL (nfct_timeout_policy_attr_unset)
 
const char * nfct_timeout_policy_attr_to_name (uint8_t l4proto, uint32_t state)
 nfct_timeout_policy_attr_to_name - get state name from protocol state number More...
 
 EXPORT_SYMBOL (nfct_timeout_policy_attr_to_name)
 
int nfct_timeout_snprintf (char *buf, size_t size, const struct nfct_timeout *t, unsigned int type, unsigned int flags)
 nfct_timeout_snprintf - print conntrack timeout object into one buffer More...
 
 EXPORT_SYMBOL (nfct_timeout_snprintf)
 
struct nlmsghdrnfct_timeout_nlmsg_build_hdr (char *buf, uint8_t cmd, uint16_t flags, uint32_t seq)
 nfct_timeout_nlmsg_build_hdr - build netlink message header for ct timeout More...
 
 EXPORT_SYMBOL (nfct_timeout_nlmsg_build_hdr)
 
void nfct_timeout_nlmsg_build_payload (struct nlmsghdr *nlh, const struct nfct_timeout *t)
 nfct_timeout_nlmsg_build_payload - build payload from ct timeout object More...
 
 EXPORT_SYMBOL (nfct_timeout_nlmsg_build_payload)
 
int nfct_timeout_nlmsg_parse_payload (const struct nlmsghdr *nlh, struct nfct_timeout *t)
 nfct_timeout_nlmsg_parse_payload - set timeout object attributes from message More...
 
 EXPORT_SYMBOL (nfct_timeout_nlmsg_parse_payload)
 

Variable Documentation

uint32_t attr_max
uint32_t nlattr_max
const char* const* state_to_name