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

Enumerations

enum  nfct_timeout_attr {
  NFCT_TIMEOUT_ATTR_NAME = 0,
  NFCT_TIMEOUT_ATTR_L3PROTO,
  NFCT_TIMEOUT_ATTR_L4PROTO,
  NFCT_TIMEOUT_ATTR_POLICY,
  NFCT_TIMEOUT_ATTR_MAX
}
 
enum  nfct_timeout_tcp_attr {
  NFCT_TIMEOUT_ATTR_TCP_SYN_SENT = 0,
  NFCT_TIMEOUT_ATTR_TCP_SYN_RECV,
  NFCT_TIMEOUT_ATTR_TCP_ESTABLISHED,
  NFCT_TIMEOUT_ATTR_TCP_FIN_WAIT,
  NFCT_TIMEOUT_ATTR_TCP_CLOSE_WAIT,
  NFCT_TIMEOUT_ATTR_TCP_LAST_ACK,
  NFCT_TIMEOUT_ATTR_TCP_TIME_WAIT,
  NFCT_TIMEOUT_ATTR_TCP_CLOSE,
  NFCT_TIMEOUT_ATTR_TCP_SYN_SENT2,
  NFCT_TIMEOUT_ATTR_TCP_RETRANS,
  NFCT_TIMEOUT_ATTR_TCP_UNACK,
  NFCT_TIMEOUT_ATTR_TCP_MAX
}
 
enum  nfct_timeout_udp_attr {
  NFCT_TIMEOUT_ATTR_UDP_UNREPLIED = 0,
  NFCT_TIMEOUT_ATTR_UDP_REPLIED,
  NFCT_TIMEOUT_ATTR_UDP_MAX
}
 
enum  nfct_timeout_udplite_attr {
  NFCT_TIMEOUT_ATTR_UDPLITE_UNREPLIED = 0,
  NFCT_TIMEOUT_ATTR_UDPLITE_REPLIED,
  NFCT_TIMEOUT_ATTR_UDPLITE_MAX
}
 
enum  nfct_timeout_dccp_attr {
  NFCT_TIMEOUT_ATTR_DCCP_REQUEST,
  NFCT_TIMEOUT_ATTR_DCCP_RESPOND,
  NFCT_TIMEOUT_ATTR_DCCP_PARTOPEN,
  NFCT_TIMEOUT_ATTR_DCCP_OPEN,
  NFCT_TIMEOUT_ATTR_DCCP_CLOSEREQ,
  NFCT_TIMEOUT_ATTR_DCCP_CLOSING,
  NFCT_TIMEOUT_ATTR_DCCP_TIMEWAIT,
  NFCT_TIMEOUT_ATTR_DCCP_MAX
}
 
enum  nfct_timeout_sctp_attr {
  NFCT_TIMEOUT_ATTR_SCTP_CLOSED = 0,
  NFCT_TIMEOUT_ATTR_SCTP_COOKIE_WAIT,
  NFCT_TIMEOUT_ATTR_SCTP_COOKIE_ECHOED,
  NFCT_TIMEOUT_ATTR_SCTP_ESTABLISHED,
  NFCT_TIMEOUT_ATTR_SCTP_SHUTDOWN_SENT,
  NFCT_TIMEOUT_ATTR_SCTP_SHUTDOWN_RECD,
  NFCT_TIMEOUT_ATTR_SCTP_SHUTDOWN_ACK_SENT,
  NFCT_TIMEOUT_ATTR_SCTP_MAX
}
 
enum  nfct_timeout_icmp_attr {
  NFCT_TIMEOUT_ATTR_ICMP = 0,
  NFCT_TIMEOUT_ATTR_ICMP_MAX
}
 
enum  nfct_timeout_icmpv6_attr {
  NFCT_TIMEOUT_ATTR_ICMPV6 = 0,
  NFCT_TIMEOUT_ATTR_ICMPV6_MAX
}
 
enum  nfct_timeout_gre_attr {
  NFCT_TIMEOUT_ATTR_GRE_UNREPLIED = 0,
  NFCT_TIMEOUT_ATTR_GRE_REPLIED,
  NFCT_TIMEOUT_ATTR_GRE_MAX
}
 
enum  nfct_timeout_generic_attr {
  NFCT_TIMEOUT_ATTR_GENERIC = 0,
  NFCT_TIMEOUT_ATTR_GENERIC_MAX
}
 
enum  { NFCT_TIMEOUT_O_DEFAULT }
 

Functions

struct nfct_timeoutnfct_timeout_alloc (void)
 nfct_timeout_alloc - allocate a new conntrack timeout object More...
 
void nfct_timeout_free (struct nfct_timeout *)
 nfct_timeout_free - release one conntrack timeout object More...
 
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...
 
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...
 
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...
 
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...
 
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...
 
int nfct_timeout_policy_attr_set_u32 (struct nfct_timeout *, uint32_t type, uint32_t data)
 nfct_timeout_policy_attr_set_u32 - set one attribute of the policy More...
 
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...
 
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...
 
void nfct_timeout_nlmsg_build_payload (struct nlmsghdr *, const struct nfct_timeout *)
 nfct_timeout_nlmsg_build_payload - build payload from ct timeout object More...
 
int nfct_timeout_nlmsg_parse_payload (const struct nlmsghdr *nlh, struct nfct_timeout *)
 nfct_timeout_nlmsg_parse_payload - set timeout object attributes from message More...
 
int nfct_timeout_snprintf (char *buf, size_t size, const struct nfct_timeout *, unsigned int type, unsigned int flags)
 nfct_timeout_snprintf - print conntrack timeout object into one buffer More...
 

Enumeration Type Documentation

anonymous enum
Enumerator
NFCT_TIMEOUT_O_DEFAULT 
Enumerator
NFCT_TIMEOUT_ATTR_NAME 
NFCT_TIMEOUT_ATTR_L3PROTO 
NFCT_TIMEOUT_ATTR_L4PROTO 
NFCT_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