/home/tomh/openhip/hip-0.5/src/include/win32/netlink.h File Reference

Go to the source code of this file.

Classes

struct  sockaddr_nl
struct  nlmsghdr
struct  nlmsgerr

Defines

#define NETLINK_ROUTE   0
#define NETLINK_SKIP   1
#define NETLINK_USERSOCK   2
#define NETLINK_FIREWALL   3
#define NETLINK_TCPDIAG   4
#define NETLINK_NFLOG   5
#define NETLINK_ARPD   8
#define NETLINK_ROUTE6   11
#define NETLINK_IP6_FW   13
#define NETLINK_DNRTMSG   14
#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

#define NET_MAJOR   36

#define NETLINK_ARPD   8

#define NETLINK_DNRTMSG   14

#define NETLINK_FIREWALL   3

#define NETLINK_IP6_FW   13

#define NETLINK_NFLOG   5

#define NETLINK_ROUTE   0

#define NETLINK_ROUTE6   11

#define NETLINK_SKIP   1

#define NETLINK_TAPBASE   16

#define NETLINK_TCPDIAG   4

#define NETLINK_USERSOCK   2

#define NLM_F_ACK   4

#define NLM_F_APPEND   0x800

#define NLM_F_ATOMIC   0x400

#define NLM_F_CREATE   0x400

#define NLM_F_DUMP   (NLM_F_ROOT|NLM_F_MATCH)

#define NLM_F_ECHO   8

#define NLM_F_EXCL   0x200

#define NLM_F_MATCH   0x200

#define NLM_F_MULTI   2

#define NLM_F_REPLACE   0x100

#define NLM_F_REQUEST   1

#define NLM_F_ROOT   0x100

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

#define NLMSG_ALIGNTO   4

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

#define NLMSG_DONE   0x3

#define NLMSG_ERROR   0x2

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

#define NLMSG_NEXT ( nlh,
len   ) 

Value:

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

#define NLMSG_NOOP   0x1

#define NLMSG_OK ( nlh,
len   ) 

Value:

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

#define NLMSG_OVERRUN   0x4

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

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


Generated on Mon Oct 22 11:43:43 2007 for OpenHIP by  doxygen 1.5.1