wpa_supplicant - Private copy of Linux netlink/rtnetlink definitions.
More...
Go to the source code of this file.
|
#define | IFF_LOWER_UP 0x10000 /* driver signals L1 up */ |
|
#define | IFF_DORMANT 0x20000 /* driver signals dormant */ |
|
#define | IFLA_IFNAME 3 |
|
#define | IFLA_WIRELESS 11 |
|
#define | IFLA_OPERSTATE 16 |
|
#define | IFLA_LINKMODE 17 |
|
#define | IF_OPER_DORMANT 5 |
|
#define | IF_OPER_UP 6 |
|
#define | NLM_F_REQUEST 1 |
|
#define | NETLINK_ROUTE 0 |
|
#define | RTMGRP_LINK 1 |
|
#define | RTM_BASE 0x10 |
|
#define | RTM_NEWLINK (RTM_BASE + 0) |
|
#define | RTM_DELLINK (RTM_BASE + 1) |
|
#define | RTM_SETLINK (RTM_BASE + 3) |
|
#define | NLMSG_ALIGNTO 4 |
|
#define | NLMSG_ALIGN(len) (((len) + NLMSG_ALIGNTO - 1) & ~(NLMSG_ALIGNTO - 1)) |
|
#define | NLMSG_HDRLEN ((int) NLMSG_ALIGN(sizeof(struct nlmsghdr))) |
|
#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 | RTA_ALIGNTO 4 |
|
#define | RTA_ALIGN(len) (((len) + RTA_ALIGNTO - 1) & ~(RTA_ALIGNTO - 1)) |
|
#define | RTA_OK(rta, len) |
|
#define | RTA_NEXT(rta, attrlen) |
|
#define | RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) |
|
#define | RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len)) |
|
#define | RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0))) |
|
#define | RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) |
|
wpa_supplicant - Private copy of Linux netlink/rtnetlink definitions.
#define NLMSG_NEXT |
( |
|
nlh, |
|
|
|
len |
|
) |
| |
Value:((len) -= NLMSG_ALIGN((nlh)->nlmsg_len), \
(((char *)(nlh)) + NLMSG_ALIGN((nlh)->nlmsg_len)))
Definition: priv_netlink.h:80
#define NLMSG_OK |
( |
|
nlh, |
|
|
|
len |
|
) |
| |
Value:((len) >= (
int)
sizeof(
struct nlmsghdr) && \
(nlh)->nlmsg_len >=
sizeof(
struct nlmsghdr) && \
(int) (nlh)->nlmsg_len <= (len))
Definition: priv_netlink.h:80
#define RTA_NEXT |
( |
|
rta, |
|
|
|
attrlen |
|
) |
| |
Value:((attrlen) -= RTA_ALIGN((rta)->rta_len), \
(
struct rtattr *) (((
char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
Definition: priv_netlink.h:99
#define RTA_OK |
( |
|
rta, |
|
|
|
len |
|
) |
| |
Value:((len) > 0 && (rta)->rta_len >=
sizeof(
struct rtattr) && \
(rta)->rta_len <= (len))
Definition: priv_netlink.h:99