aboutsummaryrefslogtreecommitdiffstats
path: root/src/drivers/priv_netlink.h
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-01-06 09:49:46 (GMT)
committerJouni Malinen <j@w1.fi>2014-01-07 08:45:12 (GMT)
commit90a545ccbafaa8e40f42f0050155ac162343496c (patch)
treedc9cf1ffe6492b4dcf36715b82b42e9aad4bfd0a /src/drivers/priv_netlink.h
parentb6a9590b34af0766029085de9b51563dced383a8 (diff)
downloadhostap-90a545ccbafaa8e40f42f0050155ac162343496c.zip
hostap-90a545ccbafaa8e40f42f0050155ac162343496c.tar.gz
hostap-90a545ccbafaa8e40f42f0050155ac162343496c.tar.bz2
nl80211: Clean up netlink parsing and debug prints
This makes the RTM_NEWLINK, RTM_DELLINK, and operstate debug messages easier to understand. Signed-hostap: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'src/drivers/priv_netlink.h')
-rw-r--r--src/drivers/priv_netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/drivers/priv_netlink.h b/src/drivers/priv_netlink.h
index 74d6ce5..6232088 100644
--- a/src/drivers/priv_netlink.h
+++ b/src/drivers/priv_netlink.h
@@ -69,6 +69,7 @@
(struct rtattr *) (((char *)(rta)) + RTA_ALIGN((rta)->rta_len)))
#define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
#define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0)))
+#define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0))
struct sockaddr_nl