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

Enumerations

enum  {
  NFT_PARSE_EBADINPUT = 0,
  NFT_PARSE_EMISSINGNODE,
  NFT_PARSE_EBADTYPE
}
 
enum  nft_output_type {
  NFT_OUTPUT_DEFAULT = 0,
  NFT_OUTPUT_XML,
  NFT_OUTPUT_JSON
}
 
enum  nft_output_flags {
  NFT_OF_EVENT_NEW = (1 << 0),
  NFT_OF_EVENT_DEL = (1 << 1),
  NFT_OF_EVENT_ANY = (NFT_OF_EVENT_NEW | NFT_OF_EVENT_DEL)
}
 
enum  nft_parse_type {
  NFT_PARSE_NONE = 0,
  NFT_PARSE_XML,
  NFT_PARSE_JSON,
  NFT_PARSE_MAX
}
 

Functions

struct nlmsghdrnft_nlmsg_build_hdr (char *buf, uint16_t cmd, uint16_t family, uint16_t type, uint32_t seq)
 
struct nft_parse_errnft_parse_err_alloc (void)
 
void nft_parse_err_free (struct nft_parse_err *)
 
int nft_parse_perror (const char *str, struct nft_parse_err *err)
 
int nft_batch_is_supported (void)
 
void nft_batch_begin (char *buf, uint32_t seq)
 
void nft_batch_end (char *buf, uint32_t seq)
 

Enumeration Type Documentation

anonymous enum
Enumerator
NFT_PARSE_EBADINPUT 
NFT_PARSE_EMISSINGNODE 
NFT_PARSE_EBADTYPE 
Enumerator
NFT_OF_EVENT_NEW 
NFT_OF_EVENT_DEL 
NFT_OF_EVENT_ANY 
Enumerator
NFT_OUTPUT_DEFAULT 
NFT_OUTPUT_XML 
NFT_OUTPUT_JSON 
Enumerator
NFT_PARSE_NONE 
NFT_PARSE_XML 
NFT_PARSE_JSON 
NFT_PARSE_MAX 

Function Documentation

void nft_batch_begin ( char *  buf,
uint32_t  seq 
)

References NFNL_MSG_BATCH_BEGIN.

Referenced by mnl_batch_begin(), and nft_batch_is_supported().

Here is the caller graph for this function:

void nft_batch_end ( char *  buf,
uint32_t  seq 
)

References NFNL_MSG_BATCH_END.

Referenced by mnl_batch_end(), and nft_batch_is_supported().

Here is the caller graph for this function:

struct nlmsghdr* nft_nlmsg_build_hdr ( char *  buf,
uint16_t  cmd,
uint16_t  family,
uint16_t  type,
uint32_t  seq 
)
struct nft_parse_err* nft_parse_err_alloc ( void  )
void nft_parse_err_free ( struct nft_parse_err )

References xfree.