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

Data Structures

struct  sockaddr_nl
 Netlink socket address. More...
 
struct  nlmsghdr
 Netlink message header. More...
 
struct  nlmsgerr
 Netlink error message. More...
 
struct  nl_pktinfo
 

Macros

Standard message flags
#define NLM_F_REQUEST   1
 Must be set on all request messages (typically from user space to kernel space). More...
 
#define NLM_F_MULTI   2
 Indicates the message is part of a multipart message terminated by NLMSG_DONE. More...
 
#define NLM_F_ACK   4
 Request for an acknowledgment on success. More...
 
#define NLM_F_ECHO   8
 Echo this request. More...
 
Additional message flags for GET requests
#define NLM_F_ROOT   0x100
 Return the complete table instead of a single entry. More...
 
#define NLM_F_MATCH   0x200
 Return all entries matching criteria passed in message content. More...
 
#define NLM_F_ATOMIC   0x400
 Return an atomic snapshot of the table being referenced. More...
 
#define NLM_F_DUMP   (NLM_F_ROOT|NLM_F_MATCH)
 Dump all entries. More...
 
Additional messsage flags for NEW requests
#define NLM_F_REPLACE   0x100
 Replace existing matching config object with this request. More...
 
#define NLM_F_EXCL   0x200
 Don't replace the config object if it already exists. More...
 
#define NLM_F_CREATE   0x400
 Create config object if it doesn't already exist. More...
 
#define NLM_F_APPEND   0x800
 Add to the end of the object list. More...
 
Standard Message types
#define NLMSG_NOOP   0x1
 No operation, message must be ignored. More...
 
#define NLMSG_ERROR   0x2
 The message signals an error and the payload contains a nlmsgerr structure. More...
 
#define NLMSG_DONE   0x3
 Message terminates a multipart message. More...
 
#define NLMSG_OVERRUN   0x4
 The message signals that data got lost. More...
 
#define NLMSG_MIN_TYPE   0x10
 Lower limit of reserved message types. More...