summaryrefslogtreecommitdiffstats
path: root/include/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/network.h')
-rw-r--r--include/network.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/network.h b/include/network.h
index 96a0185..9098e5c 100644
--- a/include/network.h
+++ b/include/network.h
@@ -161,6 +161,8 @@ struct netattr {
x->nta_attr = ntohs(x->nta_attr); \
})
+#define NTA_SIZE(len) NTA_ALIGN(sizeof(struct netattr)) + len
+
#define NTA_DATA(x) \
(void *)(((char *)x) + NTA_ALIGN(sizeof(struct netattr)))