summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Eitzenberger <heitzenberger@astaro.com>2009-10-21 10:46:25 +0200
committerHarald Welte <laforge@gnumonks.org>2010-10-21 19:15:38 +0200
commit1e6d15ec3f7dfdf49f2ea00a5b02370c73279271 (patch)
tree798f33e96e3e41bbef0c22f4a0b9dbc70341eb93
parenta8f9b62e71da91dfaf5ce23749372c11ac1915d5 (diff)
BASE: use in_addr key type
Signed-off-by: Holger Eitzenberger <holger@eitzenberger.org>
-rw-r--r--filter/raw2packet/ulogd_raw2packet_BASE.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/raw2packet/ulogd_raw2packet_BASE.c b/filter/raw2packet/ulogd_raw2packet_BASE.c
index 13a1a45..6107db2 100644
--- a/filter/raw2packet/ulogd_raw2packet_BASE.c
+++ b/filter/raw2packet/ulogd_raw2packet_BASE.c
@@ -303,8 +303,8 @@ ip_interp(struct ulogd_pluginstance *pi)
struct ulogd_key *out = pi->output.keys;
const struct iphdr *iph = key_src_ptr(&in[I_RawPkt]);
- key_set_u32(&out[O_IpSAddr], ntohl(iph->saddr));
- key_set_u32(&out[O_IpDAddr], ntohl(iph->daddr));
+ key_set_in(&out[O_IpSAddr], (const struct in_addr *)&iph->saddr);
+ key_set_in(&out[O_IpDAddr], (const struct in_addr *)&iph->daddr);
key_set_u8(&out[O_IpProto], iph->protocol);
key_set_u8(&out[O_IpTos], iph->tos);
key_set_u8(&out[O_IpTtl], iph->ttl);