Classes | Defines
priv_netlink.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ifinfomsg
struct  nlmsghdr
struct  rtattr
struct  sockaddr_nl

Defines

#define NETLINK_ROUTE   0
#define NLM_F_REQUEST   1
#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_HDRLEN   ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))
#define NLMSG_LENGTH(len)   ((len) + NLMSG_ALIGN(sizeof(struct nlmsghdr)))
#define NLMSG_NEXT(nlh, len)
#define NLMSG_OK(nlh, len)
#define NLMSG_PAYLOAD(nlh, len)   ((nlh)->nlmsg_len - NLMSG_SPACE((len)))
#define NLMSG_SPACE(len)   NLMSG_ALIGN(NLMSG_LENGTH(len))
#define RTA_ALIGN(len)   (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1))
#define RTA_ALIGNTO   4
#define RTA_DATA(rta)   ((void *) (((char *) (rta)) + RTA_LENGTH(0)))
#define RTA_LENGTH(len)   (RTA_ALIGN(sizeof(struct rtattr)) + (len))
#define RTA_NEXT(rta, attrlen)
#define RTA_OK(rta, len)
#define RTM_BASE   0x10
#define RTM_DELLINK   (RTM_BASE + 1)
#define RTM_NEWLINK   (RTM_BASE + 0)
#define RTM_SETLINK   (RTM_BASE + 3)
#define RTMGRP_LINK   1

Define Documentation

#define NETLINK_ROUTE   0

Definition at line 47 of file priv_netlink.h.

#define NLM_F_REQUEST   1

Definition at line 45 of file priv_netlink.h.

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

Definition at line 55 of file priv_netlink.h.

#define NLMSG_ALIGNTO   4

Definition at line 54 of file priv_netlink.h.

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

Definition at line 59 of file priv_netlink.h.

#define NLMSG_HDRLEN   ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr)))

Definition at line 56 of file priv_netlink.h.

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

Definition at line 57 of file priv_netlink.h.

#define NLMSG_NEXT (   nlh,
  len 
)
Value:
((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
                             (struct nlmsghdr *) \
                             (((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))

Definition at line 60 of file priv_netlink.h.

#define NLMSG_OK (   nlh,
  len 
)
Value:
((len) >= (int) sizeof(struct nlmsghdr) && \
                           (nlh)->nlmsg_len >= sizeof(struct nlmsghdr) && \
                           (int) (nlh)->nlmsg_len <= (len))

Definition at line 63 of file priv_netlink.h.

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

Definition at line 66 of file priv_netlink.h.

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

Definition at line 58 of file priv_netlink.h.

#define RTA_ALIGN (   len)    (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1))

Definition at line 69 of file priv_netlink.h.

#define RTA_ALIGNTO   4

Definition at line 68 of file priv_netlink.h.

#define RTA_DATA (   rta)    ((void *) (((char *) (rta)) + RTA_LENGTH(0)))

Definition at line 77 of file priv_netlink.h.

#define RTA_LENGTH (   len)    (RTA_ALIGN(sizeof(struct rtattr)) + (len))

Definition at line 76 of file priv_netlink.h.

#define RTA_NEXT (   rta,
  attrlen 
)
Value:
((attrlen) -= RTA_ALIGN((rta)->rta_len), \
(struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))

Definition at line 73 of file priv_netlink.h.

#define RTA_OK (   rta,
  len 
)
Value:
((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \
(rta)->rta_len <= (len))

Definition at line 70 of file priv_netlink.h.

#define RTM_BASE   0x10

Definition at line 49 of file priv_netlink.h.

#define RTM_DELLINK   (RTM_BASE + 1)

Definition at line 51 of file priv_netlink.h.

#define RTM_NEWLINK   (RTM_BASE + 0)

Definition at line 50 of file priv_netlink.h.

#define RTM_SETLINK   (RTM_BASE + 3)

Definition at line 52 of file priv_netlink.h.

#define RTMGRP_LINK   1

Definition at line 48 of file priv_netlink.h.



wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Apr 24 2014 15:34:39