summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/internal.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/internal.h b/include/internal.h
index c512a85..5a13c11 100644
--- a/include/internal.h
+++ b/include/internal.h
@@ -158,10 +158,11 @@ static inline int test_bit(int nr, const u_int32_t *addr)
return ((1UL << (nr & 31)) & (addr[nr >> 5])) != 0;
}
-#define BUFFER_SIZE(ret, size, len) \
+#define BUFFER_SIZE(ret, size, len, offset) \
+ size += ret; \
if (ret > len) \
ret = len; \
- size += ret; \
+ offset += ret; \
len -= ret;
int __build_conntrack(struct nfnl_subsys_handle *ssh, struct nfnlhdr *req, size_t size, u_int16_t type, u_int16_t flags, const struct nf_conntrack *ct);