netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
netlink-local.h File Reference
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <math.h>
#include <time.h>
#include <stdarg.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <inttypes.h>
#include <assert.h>
#include <limits.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <linux/types.h>
#include <linux/if.h>
#include <linux/if_arp.h>
#include <linux/if_ether.h>
#include <linux/pkt_sched.h>
#include <linux/pkt_cls.h>
#include <linux/gen_stats.h>
#include <linux/ip_mp_alg.h>
#include <netlink/netlink.h>
#include <netlink/handlers.h>
#include <netlink/cache.h>
#include <netlink/route/tc.h>
#include <netlink/object-api.h>
#include <netlink/cache-api.h>
#include <netlink-types.h>
Include dependency graph for netlink-local.h:

Data Structures

struct  trans_tbl
 
struct  trans_list
 

Macros

#define SOL_NETLINK   270
 
#define __ADD(id, name)   { .i = id, .a = #name },
 
#define NL_DEBUG   1
 
#define NL_DBG(LVL, FMT, ARG...)
 
#define BUG()
 
#define ARRAY_SIZE(X)   (sizeof(X) / sizeof((X)[0]))
 
#define offsetof(TYPE, MEMBER)   ((size_t) &((TYPE *)0)->MEMBER)
 
#define __init   __attribute__ ((constructor))
 
#define __exit   __attribute__ ((destructor))
 
#define __deprecated   __attribute__ ((deprecated))
 
#define min(x, y)
 
#define max(x, y)
 
#define min_t(type, x, y)   ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
 
#define max_t(type, x, y)   ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
 
#define GENL_FAMILY(id, name)
 

Functions

int __nl_read_num_str_file (const char *path, int(*cb)(long, const char *))
 
int __trans_list_add (int, const char *, struct nl_list_head *)
 
void __trans_list_clear (struct nl_list_head *)
 
char * __type2str (int, char *, size_t, struct trans_tbl *, size_t)
 
int __str2type (const char *, struct trans_tbl *, size_t)
 
char * __list_type2str (int, char *, size_t, struct nl_list_head *)
 
int __list_str2type (const char *, struct nl_list_head *)
 
char * __flags2str (int, char *, size_t, struct trans_tbl *, size_t)
 
int __str2flags (const char *, struct trans_tbl *, size_t)
 
void dump_from_ops (struct nl_object *, struct nl_dump_params *)
 
int nl_cache_parse (struct nl_cache_ops *, struct sockaddr_nl *, struct nlmsghdr *, struct nl_parser_param *)
 

Macro Definition Documentation

#define __ADD (   id,
  name 
)    { .i = id, .a = #name },
#define __deprecated   __attribute__ ((deprecated))
#define __exit   __attribute__ ((destructor))
#define __init   __attribute__ ((constructor))
#define ARRAY_SIZE (   X)    (sizeof(X) / sizeof((X)[0]))
#define GENL_FAMILY (   id,
  name 
)
Value:
{ \
}
Definition: cache-api.h:112
#define END_OF_MSGTYPES_LIST
Definition: cache-api.h:123
u_int32_t id
Definition: libnetfilter_queue.h:86
const char * name
Definition: libxt_hashlimit.c:457
#define max (   x,
 
)
Value:
({ \
typeof(x) _x = (x); \
typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x > _y ? _x : _y; })
#define max_t (   type,
  x,
 
)    ({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
#define min (   x,
 
)
Value:
({ \
typeof(x) _x = (x); \
typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x < _y ? _x : _y; })
#define min_t (   type,
  x,
 
)    ({ type __x = (x); type __y = (y); __x < __y ? __x: __y; })
#define NL_DEBUG   1
#define offsetof (   TYPE,
  MEMBER 
)    ((size_t) &((TYPE *)0)->MEMBER)
#define SOL_NETLINK   270

Function Documentation

int __list_str2type ( const char *  ,
struct nl_list_head  
)

Referenced by rtnl_route_str2proto(), and rtnl_route_str2table().

Here is the caller graph for this function:

char* __list_type2str ( int  ,
char *  ,
size_t  ,
struct nl_list_head  
)

Referenced by rtnl_route_proto2str(), and rtnl_route_table2str().

Here is the caller graph for this function:

int __str2flags ( const char *  ,
struct trans_tbl ,
size_t   
)
int __trans_list_add ( int  ,
const char *  ,
struct nl_list_head  
)
void __trans_list_clear ( struct nl_list_head )

Referenced by rtnl_route_read_protocol_names(), and rtnl_route_read_table_names().

Here is the caller graph for this function:

void dump_from_ops ( struct nl_object ,
struct nl_dump_params  
)

Referenced by nl_cache_dump_filter(), and nl_object_dump().

Here is the caller graph for this function:

int nl_cache_parse ( struct nl_cache_ops ,
struct sockaddr_nl ,
struct nlmsghdr ,
struct nl_parser_param  
)

Referenced by nl_cache_parse_and_add(), and nl_msg_parse().

Here is the caller graph for this function: