priv_netlink.h File Reference

wpa_supplicant - Private copy of Linux netlink/rtnetlink definitions. More...

Go to the source code of this file.

Data Structures

struct  sockaddr_nl
struct  nlmsghdr
struct  ifinfomsg
struct  rtattr

Defines

#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_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)
#define RTA_LENGTH(len)   (RTA_ALIGN(sizeof(struct rtattr)) + (len))
#define RTA_DATA(rta)   ((void *) (((char *) (rta)) + RTA_LENGTH(0)))

Detailed Description

wpa_supplicant - Private copy of Linux netlink/rtnetlink definitions.

Copyright
Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>

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.


Define Documentation

#define RTA_NEXT ( rta,
attrlen   ) 
Value:
((attrlen) -= RTA_ALIGN((rta)->rta_len), \
(struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
#define RTA_OK ( rta,
len   ) 
Value:
((len) > 0 && (rta)->rta_len >= sizeof(struct rtattr) && \
(rta)->rta_len <= (len))
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 28 23:07:50 2009 for wpa_supplicant/hostapd by  doxygen 1.6.1