summaryrefslogtreecommitdiffstats
path: root/src/conntrack/parse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/conntrack/parse.c')
-rw-r--r--src/conntrack/parse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conntrack/parse.c b/src/conntrack/parse.c
index 416573f..cb2a8dc 100644
--- a/src/conntrack/parse.c
+++ b/src/conntrack/parse.c
@@ -219,7 +219,7 @@ static void __parse_protoinfo_tcp(const struct nfattr *attr,
if (tb[CTA_PROTOINFO_TCP_FLAGS_ORIGINAL-1]) {
memcpy(&ct->protoinfo.tcp.flags[0],
NFA_DATA(tb[CTA_PROTOINFO_TCP_FLAGS_ORIGINAL-1]),
- sizeof(u_int16_t));
+ sizeof(struct nf_ct_tcp_flags));
set_bit(ATTR_TCP_FLAGS_ORIG, ct->set);
set_bit(ATTR_TCP_MASK_ORIG, ct->set);
}
@@ -227,7 +227,7 @@ static void __parse_protoinfo_tcp(const struct nfattr *attr,
if (tb[CTA_PROTOINFO_TCP_FLAGS_REPLY-1]) {
memcpy(&ct->protoinfo.tcp.flags[1],
NFA_DATA(tb[CTA_PROTOINFO_TCP_FLAGS_REPLY-1]),
- sizeof(u_int16_t));
+ sizeof(struct nf_ct_tcp_flags));
set_bit(ATTR_TCP_FLAGS_REPL, ct->set);
set_bit(ATTR_TCP_MASK_REPL, ct->set);
}