netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
labels.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include "internal/internal.h"
Include dependency graph for labels.c:

Data Structures

struct  labelmap_bucket
 
struct  nfct_labelmap
 

Macros

#define MAX_BITS   1024
 
#define CONNLABEL_CFG   "/etc/xtables/connlabel.conf"
 
#define HASH_SIZE   64
 

Functions

int __labelmap_get_bit (struct nfct_labelmap *m, const char *name)
 
const char * __labelmap_get_name (struct nfct_labelmap *m, unsigned int bit)
 
void __labelmap_destroy (struct nfct_labelmap *map)
 
struct nfct_labelmap__labelmap_new (const char *name)
 

Macro Definition Documentation

#define CONNLABEL_CFG   "/etc/xtables/connlabel.conf"

Referenced by __labelmap_new().

#define HASH_SIZE   64

Referenced by __labelmap_destroy().

#define MAX_BITS   1024

Referenced by __labelmap_new().

Function Documentation

void __labelmap_destroy ( struct nfct_labelmap map)

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 m,
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 m,
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 *  name)

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: