Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

netlink.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define NETLINK_ROUTE   0
#define NETLINK_SKIP   1
#define NETLINK_USERSOCK   2
#define NETLINK_FIREWALL   3
#define NETLINK_ARPD   8
#define NETLINK_ROUTE6   11
#define NETLINK_IP6_FW   13
#define NETLINK_TAPBASE   16
#define MAX_LINKS   32
#define NLM_F_REQUEST   1
#define NLM_F_MULTI   2
#define NLM_F_ACK   4
#define NLM_F_ECHO   8
#define NLM_F_ROOT   0x100
#define NLM_F_MATCH   0x200
#define NLM_F_ATOMIC   0x400
#define NLM_F_DUMP   (NLM_F_ROOT|NLM_F_MATCH)
#define NLM_F_REPLACE   0x100
#define NLM_F_EXCL   0x200
#define NLM_F_CREATE   0x400
#define NLM_F_APPEND   0x800
#define NLMSG_ALIGNTO   4
#define NLMSG_ALIGN(len)   ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
#define NLMSG_LENGTH(len)   ((len)+NLMSG_ALIGN(sizeof(struct nlmsghdr)))
#define NLMSG_SPACE(len)   NLMSG_ALIGN(NLMSG_LENGTH(len))
#define NLMSG_DATA(nlh)   ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
#define NLMSG_NEXT(nlh, len)
#define NLMSG_OK(nlh, len)
#define NLMSG_PAYLOAD(nlh, len)   ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
#define NLMSG_NOOP   0x1
#define NLMSG_ERROR   0x2
#define NLMSG_DONE   0x3
#define NLMSG_OVERRUN   0x4
#define NET_MAJOR   36


Define Documentation

#define MAX_LINKS   32
 

Definition at line 13 of file netlink.h.

#define NET_MAJOR   36
 

Definition at line 82 of file netlink.h.

#define NETLINK_ARPD   8
 

Definition at line 8 of file netlink.h.

#define NETLINK_FIREWALL   3
 

Definition at line 7 of file netlink.h.

Referenced by __initfunc().

#define NETLINK_IP6_FW   13
 

Definition at line 10 of file netlink.h.

Referenced by __initfunc().

#define NETLINK_ROUTE   0
 

Definition at line 4 of file netlink.h.

#define NETLINK_ROUTE6   11
 

Definition at line 9 of file netlink.h.

Referenced by __initfunc().

#define NETLINK_SKIP   1
 

Definition at line 5 of file netlink.h.

#define NETLINK_TAPBASE   16
 

Definition at line 11 of file netlink.h.

#define NETLINK_USERSOCK   2
 

Definition at line 6 of file netlink.h.

#define NLM_F_ACK   4
 

Definition at line 36 of file netlink.h.

#define NLM_F_APPEND   0x800
 

Definition at line 49 of file netlink.h.

Referenced by fib_magic(), and fn_hash_insert().

#define NLM_F_ATOMIC   0x400
 

Definition at line 42 of file netlink.h.

#define NLM_F_CREATE   0x400
 

Definition at line 48 of file netlink.h.

Referenced by fib_convert_rtentry(), fib_magic(), and fn_hash_insert().

#define NLM_F_DUMP   (NLM_F_ROOT|NLM_F_MATCH)
 

Definition at line 43 of file netlink.h.

#define NLM_F_ECHO   8
 

Definition at line 37 of file netlink.h.

#define NLM_F_EXCL   0x200
 

Definition at line 47 of file netlink.h.

Referenced by fn_hash_insert().

#define NLM_F_MATCH   0x200
 

Definition at line 41 of file netlink.h.

#define NLM_F_MULTI   2
 

Definition at line 35 of file netlink.h.

Referenced by netlink_dump().

#define NLM_F_REPLACE   0x100
 

Definition at line 46 of file netlink.h.

Referenced by fn_hash_insert().

#define NLM_F_REQUEST   1
 

Definition at line 34 of file netlink.h.

Referenced by fib_convert_rtentry(), and fib_magic().

#define NLM_F_ROOT   0x100
 

Definition at line 40 of file netlink.h.

#define NLMSG_ALIGN len   )     ( ((len)+NLMSG_ALIGNTO-1) & ~(NLMSG_ALIGNTO-1) )
 

Definition at line 61 of file netlink.h.

Referenced by netlink_ack().

#define NLMSG_ALIGNTO   4
 

Definition at line 60 of file netlink.h.

#define NLMSG_DATA nlh   )     ((void*)(((char*)nlh) + NLMSG_LENGTH(0)))
 

Definition at line 64 of file netlink.h.

Referenced by inet_rtm_delrule(), inet_rtm_newrule(), ipmr_cache_delete(), ipmr_cache_resolve(), netlink_ack(), and netlink_dump().

#define NLMSG_DONE   0x3
 

Definition at line 73 of file netlink.h.

Referenced by netlink_dump().

#define NLMSG_ERROR   0x2
 

Definition at line 72 of file netlink.h.

Referenced by ipmr_cache_delete(), ipmr_cache_resolve(), and netlink_ack().

#define NLMSG_LENGTH len   )     ((len)+NLMSG_ALIGN(sizeof(struct nlmsghdr)))
 

Definition at line 62 of file netlink.h.

Referenced by fib_convert_rtentry(), ipmr_cache_delete(), and ipmr_cache_resolve().

#define NLMSG_NEXT nlh,
len   ) 
 

Value:

((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
                                  (struct nlmsghdr*)(((char*)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))

Definition at line 65 of file netlink.h.

#define NLMSG_NOOP   0x1
 

Definition at line 71 of file netlink.h.

#define NLMSG_OK nlh,
len   ) 
 

Value:

((len) > 0 && (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
                           (nlh)->nlmsg_len <= (len))

Definition at line 67 of file netlink.h.

#define NLMSG_OVERRUN   0x4
 

Definition at line 74 of file netlink.h.

#define NLMSG_PAYLOAD nlh,
len   )     ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
 

Definition at line 69 of file netlink.h.

#define NLMSG_SPACE len   )     NLMSG_ALIGN(NLMSG_LENGTH(len))
 

Definition at line 63 of file netlink.h.

Referenced by netlink_ack().