netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
snprintf.c File Reference
Include dependency graph for snprintf.c:

Functions

int __snprintf_conntrack (char *buf, unsigned int len, const struct nf_conntrack *ct, unsigned int type, unsigned int msg_output, unsigned int flags, struct nfct_labelmap *map)
 

Variables

const char *const l3proto2str [AF_MAX]
 
const char *const proto2str [IPPROTO_MAX]
 
const char *const states [TCP_CONNTRACK_MAX]
 
const char *const sctp_states [SCTP_CONNTRACK_MAX]
 
const char *const dccp_states [DCCP_CONNTRACK_MAX]
 

Function Documentation

int __snprintf_conntrack ( char *  buf,
unsigned int  len,
const struct nf_conntrack ct,
unsigned int  type,
unsigned int  msg_output,
unsigned int  flags,
struct nfct_labelmap map 
)

References __snprintf_conntrack_default(), __snprintf_conntrack_xml(), NFCT_O_DEFAULT, NFCT_O_XML, and size.

Referenced by nfct_snprintf(), and nfct_snprintf_labels().

Here is the call graph for this function:

Here is the caller graph for this function:

Variable Documentation

const char* const dccp_states[DCCP_CONNTRACK_MAX]
Initial value:
= {
[DCCP_CONNTRACK_NONE] = "NONE",
[DCCP_CONNTRACK_REQUEST] = "REQUEST",
[DCCP_CONNTRACK_RESPOND] = "RESPOND",
[DCCP_CONNTRACK_PARTOPEN] = "PARTOPEN",
[DCCP_CONNTRACK_OPEN] = "OPEN",
[DCCP_CONNTRACK_CLOSEREQ] = "CLOSEREQ",
[DCCP_CONNTRACK_CLOSING] = "CLOSING",
[DCCP_CONNTRACK_TIMEWAIT] = "TIMEWAIT",
[DCCP_CONNTRACK_IGNORE] = "IGNORE",
[DCCP_CONNTRACK_INVALID] = "INVALID",
}
Definition: libnetfilter_conntrack_dccp.h:14
Definition: libnetfilter_conntrack_dccp.h:15
Definition: libnetfilter_conntrack_dccp.h:16
Definition: libnetfilter_conntrack_dccp.h:12
Definition: libnetfilter_conntrack_dccp.h:9
Definition: libnetfilter_conntrack_dccp.h:17
Definition: libnetfilter_conntrack_dccp.h:13
Definition: libnetfilter_conntrack_dccp.h:18
Definition: libnetfilter_conntrack_dccp.h:11
Definition: libnetfilter_conntrack_dccp.h:10
const char* const l3proto2str[AF_MAX]
Initial value:
= {
[AF_INET] = "ipv4",
[AF_INET6] = "ipv6",
}

Referenced by __l3proto2str().

const char* const proto2str[IPPROTO_MAX]
Initial value:
= {
[IPPROTO_TCP] = "tcp",
[IPPROTO_UDP] = "udp",
[IPPROTO_UDPLITE] = "udplite",
[IPPROTO_ICMP] = "icmp",
[IPPROTO_ICMPV6] = "icmpv6",
[IPPROTO_SCTP] = "sctp",
[IPPROTO_GRE] = "gre",
[IPPROTO_DCCP] = "dccp",
}
#define IPPROTO_DCCP
Definition: libct_proto_dccp.c:21
#define IPPROTO_SCTP
Definition: libct_proto_sctp.c:21
#define IPPROTO_UDPLITE
Definition: libct_proto_udplite.c:19

Referenced by __proto2str(), and __snprintf_protocol().

const char* const sctp_states[SCTP_CONNTRACK_MAX]
Initial value:
= {
[SCTP_CONNTRACK_NONE] = "NONE",
[SCTP_CONNTRACK_CLOSED] = "CLOSED",
[SCTP_CONNTRACK_COOKIE_WAIT] = "COOKIE_WAIT",
[SCTP_CONNTRACK_COOKIE_ECHOED] = "COOKIE_ECHOED",
[SCTP_CONNTRACK_ESTABLISHED] = "ESTABLISHED",
[SCTP_CONNTRACK_SHUTDOWN_SENT] = "SHUTDOWN_SENT",
[SCTP_CONNTRACK_SHUTDOWN_RECD] = "SHUTDOWN_RECD",
[SCTP_CONNTRACK_SHUTDOWN_ACK_SENT] = "SHUTDOWN_ACK_SENT",
}
Definition: libnetfilter_conntrack_sctp.h:14
Definition: libnetfilter_conntrack_sctp.h:12
Definition: libnetfilter_conntrack_sctp.h:15
Definition: libnetfilter_conntrack_sctp.h:9
Definition: libnetfilter_conntrack_sctp.h:10
Definition: libnetfilter_conntrack_sctp.h:11
Definition: libnetfilter_conntrack_sctp.h:13
Definition: libnetfilter_conntrack_sctp.h:16
const char* const states[TCP_CONNTRACK_MAX]
Initial value:
= {
[TCP_CONNTRACK_NONE] = "NONE",
[TCP_CONNTRACK_SYN_SENT] = "SYN_SENT",
[TCP_CONNTRACK_SYN_RECV] = "SYN_RECV",
[TCP_CONNTRACK_ESTABLISHED] = "ESTABLISHED",
[TCP_CONNTRACK_FIN_WAIT] = "FIN_WAIT",
[TCP_CONNTRACK_CLOSE_WAIT] = "CLOSE_WAIT",
[TCP_CONNTRACK_LAST_ACK] = "LAST_ACK",
[TCP_CONNTRACK_TIME_WAIT] = "TIME_WAIT",
[TCP_CONNTRACK_CLOSE] = "CLOSE",
[TCP_CONNTRACK_SYN_SENT2] = "SYN_SENT2",
}
Definition: libnetfilter_conntrack_tcp.h:17
Definition: libnetfilter_conntrack_tcp.h:15
Definition: libnetfilter_conntrack_tcp.h:14
Definition: libnetfilter_conntrack_tcp.h:13
Definition: libnetfilter_conntrack_tcp.h:12
#define TCP_CONNTRACK_SYN_SENT2
Definition: libnetfilter_conntrack_tcp.h:19
Definition: libnetfilter_conntrack_tcp.h:10
Definition: libnetfilter_conntrack_tcp.h:9
Definition: libnetfilter_conntrack_tcp.h:11
Definition: libnetfilter_conntrack_tcp.h:16

Referenced by __snprintf_conntrack_xml().