diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-06-22 22:00:36 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-06-22 22:00:36 +0200 |
commit | 2de606c2458067c48e72058a31af384574cf9c70 (patch) | |
tree | 4d15edefb2a480b226d8fef30c6ecce9d3e60b51 /include | |
parent | 807f1e477baf2eb7a642e65017ede0a079ebeb4d (diff) | |
download | conntrack-tools-2de606c2458067c48e72058a31af384574cf9c70.tar.gz conntrack-tools-2de606c2458067c48e72058a31af384574cf9c70.zip |
fix xml output: wrap output with one root element
Diffstat (limited to 'include')
-rw-r--r-- | include/conntrack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/conntrack.h b/include/conntrack.h index 2e17475..dc30c13 100644 --- a/include/conntrack.h +++ b/include/conntrack.h @@ -189,4 +189,10 @@ extern void register_udp(void); extern void register_icmp(void); extern void register_icmpv6(void); +#define BUFFER_SIZE(ret, len, offset) \ + if (ret > len) \ + ret = len; \ + offset += ret; \ + len -= ret; + #endif |