diff options
author | Eric Leblond <eric@inl.fr> | 2009-01-13 00:57:10 +0100 |
---|---|---|
committer | Eric Leblond <eric@inl.fr> | 2009-01-13 08:21:21 +0100 |
commit | de384e6f16d67eb21c555793368be4cb47fced98 (patch) | |
tree | 5fd198aa975bb89c9e3ce132e63a64dd62c34578 /include/ulogd | |
parent | 4253141a9ea4745c3da5b28e00344d5f0fc706a5 (diff) |
Fix crash on IPv6 packet.
Incorrect definition of a IPv6 input key handling function was causing
a crash in ulogd.
Diffstat (limited to 'include/ulogd')
-rw-r--r-- | include/ulogd/ulogd.h | 5 |
1 files changed, 4 insertions, 1 deletions
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) { |