summaryrefslogtreecommitdiff
path: root/include/network.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/network.h')
-rw-r--r--include/network.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/network.h b/include/network.h
index 2487c81..f24fb5f 100644
--- a/include/network.h
+++ b/include/network.h
@@ -49,7 +49,7 @@ enum {
#define BUILD_NETMSG(ct, query) \
({ \
char __net[4096]; \
- memset(__net, 0, sizeof(__net)); \
+ memset(__net, 0, NETHDR_SIZ + NETPLD_SIZ); \
build_netmsg(ct, query, (struct nethdr *) __net); \
(struct nethdr *) __net; \
})
@@ -170,8 +170,8 @@ struct netattr {
#define NTA_NEXT(x, len) \
( \
- len -= NTA_ALIGN(NTA_LENGTH(x->nta_len)), \
- (struct netattr *)(((char *)x) + NTA_ALIGN(NTA_LENGTH(x->nta_len))) \
+ len -= NTA_ALIGN(x->nta_len), \
+ (struct netattr *)(((char *)x) + NTA_ALIGN(x->nta_len)) \
)
#define NTA_ALIGNTO 4