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

Functions

int genl_connect (struct nl_sock *)
 
int genl_send_simple (struct nl_sock *, int, int, int, int)
 Send trivial generic netlink message. More...
 
void * genlmsg_put (struct nl_msg *, uint32_t, uint32_t, int, int, int, uint8_t, uint8_t)
 Add generic netlink header to netlink message. More...
 
int genlmsg_valid_hdr (struct nlmsghdr *, int)
 
int genlmsg_validate (struct nlmsghdr *, int, int, struct nla_policy *)
 
int genlmsg_parse (struct nlmsghdr *, int, struct nlattr **, int, struct nla_policy *)
 
void * genlmsg_data (const struct genlmsghdr *)
 Get head of message payload. More...
 
int genlmsg_len (const struct genlmsghdr *)
 Get lenght of message payload. More...
 
struct nlattrgenlmsg_attrdata (const struct genlmsghdr *, int)
 Get head of attribute data. More...
 
int genlmsg_attrlen (const struct genlmsghdr *, int)
 Get length of attribute data. More...
 
char * genl_op2name (int, int, char *, size_t)
 

Function Documentation

int genlmsg_parse ( struct nlmsghdr ,
int  ,
struct nlattr **  ,
int  ,
struct nla_policy  
)