priv_netlink.h File Reference
wpa_supplicant - Private copy of Linux netlink/rtnetlink definitions. More...
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
|
Defines |
#define | IFLA_IFNAME 3 |
#define | IFLA_WIRELESS 11 |
#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 | 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_DATA(nlh) ((void*) (((char*) nlh) + NLMSG_LENGTH(0))) |
#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) |
Detailed Description
wpa_supplicant - Private copy of Linux netlink/rtnetlink definitions.
- Copyright
- Copyright (c) 2003-2005, Jouni Malinen <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.
Alternatively, this software may be distributed under the terms of BSD license.
See README and COPYING for more details.
Definition in file priv_netlink.h.
Define Documentation
#define RTA_NEXT |
( |
rta, |
|
|
attrlen |
|
) |
|
|
|
Value: ((attrlen) -= RTA_ALIGN((rta)->rta_len), \
(struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
Definition at line 47 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 44 of file priv_netlink.h. |
Generated on Sat May 6 21:18:36 2006 for wpa_supplicant by
1.4.2