From 63c3ae0f664ea7045446c4117646f767a5ccd647 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 8 Dec 2008 11:20:44 +0100 Subject: network: fix data offset alignment returned by NTA_DATA macro This patch aligns the data offset that is returned by the NTA_DATA macro. Signed-off-by: Pablo Neira Ayuso --- include/network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/network.h b/include/network.h index 11e65c7..96a0185 100644 --- a/include/network.h +++ b/include/network.h @@ -162,7 +162,7 @@ struct netattr { }) #define NTA_DATA(x) \ - (void *)(((char *)x) + sizeof(struct netattr)) + (void *)(((char *)x) + NTA_ALIGN(sizeof(struct netattr))) #define NTA_NEXT(x, len) \ ( \ -- cgit v1.2.3