path: root/src
diff options
author/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/ </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/>2007-03-17 11:52:57 +0000
committer/C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/ </C=DE/ST=Berlin/L=Berlin/O=Netfilter Project/OU=Development/CN=kaber/>2007-03-17 11:52:57 +0000
commitf1ea393b80edc4bef9c0bb1ff69bbcfeac330a38 (patch)
treeb7d38640a4b7a04dc963b1f8e27a8bc4667b247b /src
parent21998ee6caf537241808e06ed1cae5e39802ab5c (diff)
[PATCH] Fix icmp_id setter and doc (Phil Dibowitz <>)
ICMP ID is stored as a u_int16_t, but its setter function derefs it's arguement as a u_int8_t. Additionally the api "doc" claims it's a u8, when it's not. This patch fixes both.
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conntrack/setter.c b/src/conntrack/setter.c
index 84b1d25..255ab4d 100644
--- a/src/conntrack/setter.c
+++ b/src/conntrack/setter.c
@@ -79,7 +79,7 @@ static void set_attr_icmp_code(struct nf_conntrack *ct, const void *value)
static void set_attr_icmp_id(struct nf_conntrack *ct, const void *value)
- ct->tuple[__DIR_ORIG] = *((u_int8_t *) value);
+ ct->tuple[__DIR_ORIG] = *((u_int16_t *) value);
static void set_attr_orig_l3proto(struct nf_conntrack *ct, const void *value)