netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
prototypes.h File Reference
This graph shows which files directly or indirectly include this file:

Enumerations

enum  __nfct_addr {
  __ADDR_SRC = 0,
  __ADDR_DST
}
 

Functions

int __build_conntrack (struct nfnl_subsys_handle *ssh, struct nfnlhdr *req, size_t size, u_int16_t type, u_int16_t flags, const struct nf_conntrack *ct)
 
void __build_tuple (struct nfnlhdr *req, size_t size, const struct __nfct_tuple *t, const int type)
 
int __parse_message_type (const struct nlmsghdr *nlh)
 
void __parse_conntrack (const struct nlmsghdr *nlh, struct nfattr *cda[], struct nf_conntrack *ct)
 
void __parse_tuple (const struct nfattr *attr, struct __nfct_tuple *tuple, int dir, u_int32_t *set)
 
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 *)
 
int __snprintf_address (char *buf, unsigned int len, const struct __nfct_tuple *tuple, const char *src_tag, const char *dst_tag)
 
int __snprintf_protocol (char *buf, unsigned int len, const struct nf_conntrack *ct)
 
int __snprintf_proto (char *buf, unsigned int len, const struct __nfct_tuple *tuple)
 
int __snprintf_conntrack_default (char *buf, unsigned int len, const struct nf_conntrack *ct, const unsigned int msg_type, const unsigned int flags, struct nfct_labelmap *)
 
int __snprintf_conntrack_xml (char *buf, unsigned int len, const struct nf_conntrack *ct, const unsigned int msg_type, const unsigned int flags, struct nfct_labelmap *)
 
int __snprintf_connlabels (char *buf, unsigned int len, struct nfct_labelmap *map, const struct nfct_bitmask *b, const char *fmt)
 
int __snprintf_addr_xml (char *buf, unsigned int len, const struct __nfct_tuple *tuple, enum __nfct_addr type)
 
int __snprintf_proto_xml (char *buf, unsigned int len, const struct __nfct_tuple *tuple, enum __nfct_addr type)
 
int __snprintf_localtime_xml (char *buf, unsigned int len, const struct tm *tm)
 
const char * __proto2str (u_int8_t protonum)
 
const char * __l3proto2str (u_int8_t protonum)
 
int __callback (struct nlmsghdr *nlh, struct nfattr *nfa[], void *data)
 
int __setobjopt (struct nf_conntrack *ct, unsigned int option)
 
int __getobjopt (const struct nf_conntrack *ct, unsigned int option)
 
int __compare (const struct nf_conntrack *ct1, const struct nf_conntrack *ct2, unsigned int flags)
 
int __cmp_orig (const struct nf_conntrack *ct1, const struct nf_conntrack *ct2, unsigned int flags)
 
void __copy_fast (struct nf_conntrack *ct1, const struct nf_conntrack *ct)
 
int __setup_netlink_socket_filter (int fd, struct nfct_filter *filter)
 
void __build_filter_dump (struct nfnlhdr *req, size_t size, const struct nfct_filter_dump *filter_dump)
 
int nfct_build_tuple (struct nlmsghdr *nlh, const struct __nfct_tuple *t, int type)
 
int nfct_parse_tuple (const struct nlattr *attr, struct __nfct_tuple *tuple, int dir, u_int32_t *set)
 
int __build_expect (struct nfnl_subsys_handle *ssh, struct nfnlhdr *req, size_t size, u_int16_t type, u_int16_t flags, const struct nf_expect *exp)
 
int __parse_expect_message_type (const struct nlmsghdr *nlh)
 
void __parse_expect (const struct nlmsghdr *nlh, struct nfattr *cda[], struct nf_expect *exp)
 
int __expect_callback (struct nlmsghdr *nlh, struct nfattr *nfa[], void *data)
 
int __cmp_expect (const struct nf_expect *exp1, const struct nf_expect *exp2, unsigned int flags)
 
int __snprintf_expect (char *buf, unsigned int len, const struct nf_expect *exp, unsigned int type, unsigned int msg_output, unsigned int flags)
 
int __snprintf_expect_default (char *buf, unsigned int len, const struct nf_expect *exp, unsigned int msg_type, unsigned int flags)
 
int __snprintf_expect_xml (char *buf, unsigned int len, const struct nf_expect *exp, unsigned int msg_type, unsigned int flags)
 
struct nfct_labelmap__labelmap_new (const char *)
 
void __labelmap_destroy (struct nfct_labelmap *)
 
int __labelmap_get_bit (struct nfct_labelmap *map, const char *name)
 
const char * __labelmap_get_name (struct nfct_labelmap *map, unsigned int bit)
 

Enumeration Type Documentation

Enumerator
__ADDR_SRC 
__ADDR_DST 

Function Documentation

void __build_tuple ( struct nfnlhdr req,
size_t  size,
const struct __nfct_tuple t,
const int  type 
)

References nfnl_nest, nfnl_nest_end, and nfnlhdr::nlh.

Referenced by __build_conntrack(), and __build_expect().

Here is the caller graph for this function:

int __cmp_expect ( const struct nf_expect exp1,
const struct nf_expect exp2,
unsigned int  flags 
)
int __cmp_orig ( const struct nf_conntrack ct1,
const struct nf_conntrack ct2,
unsigned int  flags 
)

References ATTR_ORIG_IPV4_DST, ATTR_ORIG_IPV4_SRC, ATTR_ORIG_IPV6_DST, ATTR_ORIG_IPV6_SRC, ATTR_ORIG_L3PROTO, and ATTR_ORIG_L4PROTO.

Referenced by __compare().

Here is the caller graph for this function:

int __compare ( const struct nf_conntrack ct1,
const struct nf_conntrack ct2,
unsigned int  flags 
)

References __cmp_orig(), NFCT_CMP_ALL, NFCT_CMP_MASK, NFCT_CMP_ORIG, NFCT_CMP_REPL, and NFCT_CMP_STRICT.

Referenced by nfct_cmp(), and nfct_compare().

Here is the call graph for this function:

Here is the caller graph for this function:

void __copy_fast ( struct nf_conntrack ct1,
const struct nf_conntrack ct 
)

References nf_conntrack::connlabels, nf_conntrack::connlabels_mask, nf_conntrack::helper_info, NULL, and nf_conntrack::secctx.

Referenced by nfct_copy().

Here is the caller graph for this function:

int __expect_callback ( struct nlmsghdr nlh,
struct nfattr nfa[],
void *  data 
)
int __getobjopt ( const struct nf_conntrack ct,
unsigned int  option 
)

References ct, NFCT_GOPT_MAX, and unlikely.

Referenced by nfct_getobjopt().

Here is the caller graph for this function:

const char* __l3proto2str ( u_int8_t  protonum)

References l3proto2str.

void __labelmap_destroy ( struct nfct_labelmap )

References nfct_labelmap::bit_to_name, HASH_SIZE, and nfct_labelmap::map_name.

Referenced by __labelmap_new(), and nfct_labelmap_destroy().

Here is the caller graph for this function:

int __labelmap_get_bit ( struct nfct_labelmap map,
const char *  name 
)

References labelmap_bucket::bit, nfct_labelmap::map_name, labelmap_bucket::name, and labelmap_bucket::next.

Referenced by nfct_labelmap_get_bit().

Here is the caller graph for this function:

const char* __labelmap_get_name ( struct nfct_labelmap map,
unsigned int  bit 
)

References labelmap_bucket::bit, nfct_labelmap::bit_to_name, and NULL.

Referenced by nfct_labelmap_get_name().

Here is the caller graph for this function:

struct nfct_labelmap* __labelmap_new ( const char *  )

References __labelmap_destroy(), nfct_labelmap::bit_to_name, CONNLABEL_CFG, MAX_BITS, nfct_labelmap::namecount, and NULL.

Referenced by nfct_labelmap_new().

Here is the call graph for this function:

Here is the caller graph for this function:

int __parse_expect_message_type ( const struct nlmsghdr nlh)
int __parse_message_type ( const struct nlmsghdr nlh)
void __parse_tuple ( const struct nfattr attr,
struct __nfct_tuple tuple,
int  dir,
u_int32_t *  set 
)

References CTA_TUPLE_IP, CTA_TUPLE_MAX, CTA_TUPLE_PROTO, and nfnl_parse_nested.

Referenced by __parse_conntrack(), and __parse_expect().

Here is the caller graph for this function:

const char* __proto2str ( u_int8_t  protonum)

References proto2str.

int __setobjopt ( struct nf_conntrack ct,
unsigned int  option 
)

References ct, NFCT_SOPT_MAX, and unlikely.

Referenced by nfct_setobjopt().

Here is the caller graph for this function:

int __setup_netlink_socket_filter ( int  fd,
struct nfct_filter filter 
)

References sock_fprog::filter, sock_fprog::len, NFCT_FILTER_ACCEPT, and NFNL_SUBSYS_CTNETLINK.

Referenced by nfct_filter_attach().

Here is the caller graph for this function:

int __snprintf_addr_xml ( char *  buf,
unsigned int  len,
const struct __nfct_tuple tuple,
enum __nfct_addr  type 
)
int __snprintf_address ( char *  buf,
unsigned int  len,
const struct __nfct_tuple tuple,
const char *  src_tag,
const char *  dst_tag 
)

References __nfct_tuple::l3protonum, and size.

Referenced by __snprintf_conntrack_default(), and __snprintf_expect_default().

Here is the caller graph for this function:

int __snprintf_connlabels ( char *  buf,
unsigned int  len,
struct nfct_labelmap map,
const struct nfct_bitmask b,
const char *  fmt 
)

References BUFFER_SIZE, len, max, name, nfct_bitmask_maxbit(), nfct_bitmask_test_bit(), nfct_labelmap_get_name(), and size.

Here is the call graph for this function:

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  
)

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:

int __snprintf_expect ( char *  buf,
unsigned int  len,
const struct nf_expect exp,
unsigned int  type,
unsigned int  msg_output,
unsigned int  flags 
)

References __snprintf_expect_default(), __snprintf_expect_xml(), NFCT_O_DEFAULT, NFCT_O_XML, and size.

Referenced by nfexp_snprintf().

Here is the call graph for this function:

Here is the caller graph for this function:

int __snprintf_expect_default ( char *  buf,
unsigned int  len,
const struct nf_expect exp,
unsigned int  msg_type,
unsigned int  flags 
)
int __snprintf_expect_xml ( char *  buf,
unsigned int  len,
const struct nf_expect exp,
unsigned int  msg_type,
unsigned int  flags 
)

References BUFFER_SIZE, NFCT_T_DESTROY, NFCT_T_NEW, NFCT_T_UPDATE, and size.

Referenced by __snprintf_expect().

Here is the caller graph for this function:

int __snprintf_localtime_xml ( char *  buf,
unsigned int  len,
const struct tm *  tm 
)

References BUFFER_SIZE, and size.

Referenced by __snprintf_conntrack_xml().

Here is the caller graph for this function:

int __snprintf_protocol ( char *  buf,
unsigned int  len,
const struct nf_conntrack ct 
)

References nf_conntrack::head, NULL, nfct_tuple_head::orig, proto2str, and __nfct_tuple::protonum.

Referenced by __snprintf_conntrack_default().

Here is the caller graph for this function:

int nfct_build_tuple ( struct nlmsghdr nlh,
const struct __nfct_tuple t,
int  type 
)

References mnl_attr_nest_cancel(), mnl_attr_nest_end(), mnl_attr_nest_start(), and NULL.

Referenced by nfct_nlmsg_build(), and nfexp_nlmsg_build().

Here is the call graph for this function:

Here is the caller graph for this function:

int nfct_parse_tuple ( const struct nlattr attr,
struct __nfct_tuple tuple,
int  dir,
u_int32_t *  set 
)

References CTA_TUPLE_IP, CTA_TUPLE_MAX, CTA_TUPLE_PROTO, and mnl_attr_parse_nested().

Referenced by nfct_payload_parse(), and nfexp_nlmsg_parse().

Here is the call graph for this function:

Here is the caller graph for this function: