From de384e6f16d67eb21c555793368be4cb47fced98 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Tue, 13 Jan 2009 00:57:10 +0100 Subject: Fix crash on IPv6 packet. Incorrect definition of a IPv6 input key handling function was causing a crash in ulogd. --- include/ulogd/ulogd.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ulogd/ulogd.h b/include/ulogd/ulogd.h index f55d5f1..0f7aabb 100644 --- a/include/ulogd/ulogd.h +++ b/include/ulogd/ulogd.h @@ -178,7 +178,10 @@ static inline u_int32_t ikey_get_u32(struct ulogd_key *key) return key->u.source->u.value.ui32; } -#define ikey_get_u128 ikey_get_ptr +static inline void *ikey_get_u128(struct ulogd_key *key) +{ + return &key->u.source->u.value.ui128; +} static inline void *ikey_get_ptr(struct ulogd_key *key) { -- cgit v1.2.3