From 4122928416f0cb32300a756c21ef9bc13311e015 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 2 Jun 2008 01:38:33 +0200 Subject: 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. --- include/ulogd/ulogd.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include') 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 +/*********************************************************************** + * other declarations + ***********************************************************************/ + +#ifndef IPPROTO_DCCP +#define IPPROTO_DCCP 33 +#endif + +#ifndef IPPROTO_UDPLITE +#define IPPROTO_UDPLITE 136 +#endif + #endif /* _ULOGD_H */ -- cgit v1.2.3