diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-08 11:20:44 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-08 11:20:44 +0100 |
commit | 63c3ae0f664ea7045446c4117646f767a5ccd647 (patch) | |
tree | 9c05ae39d1b59e7a415c66c53fd5994889f4f989 | |
parent | a516e5f8e550a6073aae96491372c45ce340da88 (diff) | |
download | conntrack-tools-63c3ae0f664ea7045446c4117646f767a5ccd647.tar.gz conntrack-tools-63c3ae0f664ea7045446c4117646f767a5ccd647.zip |
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 <pablo@netfilter.org>
-rw-r--r-- | include/network.h | 2 |
1 files changed, 1 insertions, 1 deletions
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) \ ( \ |