netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH lnf-ct] conntrack: fix stop timestamp assignment
@ 2015-07-07  4:29 Ken-ichirou MATSUZAWA
  2015-07-07  9:50 ` Florian Westphal
  0 siblings, 1 reply; 2+ messages in thread
From: Ken-ichirou MATSUZAWA @ 2015-07-07  4:29 UTC (permalink / raw)
  To: Florian Westphal; +Cc: The netfilter developer mailinglist

Signed-off-by: Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
---
 src/conntrack/parse_mnl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 	}
 
-- 
2.1.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH lnf-ct] conntrack: fix stop timestamp assignment
  2015-07-07  4:29 [PATCH lnf-ct] conntrack: fix stop timestamp assignment Ken-ichirou MATSUZAWA
@ 2015-07-07  9:50 ` Florian Westphal
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Westphal @ 2015-07-07  9:50 UTC (permalink / raw)
  To: Ken-ichirou MATSUZAWA
  Cc: Florian Westphal, The netfilter developer mailinglist

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!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-07  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-07  4:29 [PATCH lnf-ct] conntrack: fix stop timestamp assignment Ken-ichirou MATSUZAWA
2015-07-07  9:50 ` Florian Westphal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).