summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-06-02 01:38:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-06-02 01:38:33 +0200
commit4122928416f0cb32300a756c21ef9bc13311e015 (patch)
treef96f247435fafe38b82374b4386831bf232d631e /include
parent66c0ebb31d976b5d1b0b8ab7242918165927ca32 (diff)
cleanup for key builder and fix IPv6 support and introduce 128-bits type
This patch cleans up the key building by breaking lines at 80 columns and it fixes the IPv6 support (use of a pointer after free) by introducing a new 128 bit type.
Diffstat (limited to 'include')
-rw-r--r--include/ulogd/ulogd.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h
index 73a1711..776111a 100644
--- a/include/ulogd/ulogd.h
+++ b/include/ulogd/ulogd.h
@@ -105,10 +105,12 @@ struct ulogd_key {
u_int16_t ui16;
u_int32_t ui32;
u_int64_t ui64;
+ u_int32_t ui128[4];
int8_t i8;
int16_t i16;
int32_t i32;
int64_t i64;
+ int32_t i128[4];
void *ptr;
} value;
struct ulogd_key *source;
@@ -252,4 +254,16 @@ int ulogd_select_main(struct timeval *tv);
***********************************************************************/
#include <ulogd/timer.h>
+/***********************************************************************
+ * other declarations
+ ***********************************************************************/
+
+#ifndef IPPROTO_DCCP
+#define IPPROTO_DCCP 33
+#endif
+
+#ifndef IPPROTO_UDPLITE
+#define IPPROTO_UDPLITE 136
+#endif
+
#endif /* _ULOGD_H */