Message ID | 20150707042904.GA7944@gmail.com |
---|---|
State | Accepted |
Delegated to: | Florian Westphal |
Headers | show |
Ken-ichirou MATSUZAWA <chamaken@gmail.com> wrote: > if (tb[CTA_TIMESTAMP_STOP]) { > ct->timestamp.stop = > - be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_START])); > + be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_STOP])); > set_bit(ATTR_TIMESTAMP_STOP, ct->head.set); Good catch, applied, thanks a lot! -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/src/conntrack/parse_mnl.c b/src/conntrack/parse_mnl.c index 5da9933..2582cd7 100644 --- a/src/conntrack/parse_mnl.c +++ b/src/conntrack/parse_mnl.c @@ -766,7 +766,7 @@ nfct_parse_timestamp(const struct nlattr *attr, struct nf_conntrack *ct) } if (tb[CTA_TIMESTAMP_STOP]) { ct->timestamp.stop = - be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_START])); + be64toh(mnl_attr_get_u64(tb[CTA_TIMESTAMP_STOP])); set_bit(ATTR_TIMESTAMP_STOP, ct->head.set); }
Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp> --- src/conntrack/parse_mnl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)