[ULOGD RFC 17/30] NFCT: use localtime for timestamps

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Holger Eitzenberger <holger@xxxxxxxxxxxxxxxx>

Index: ulogd-netfilter/input/flow/ulogd_inpflow_NFCT.c
===================================================================
--- ulogd-netfilter.orig/input/flow/ulogd_inpflow_NFCT.c
+++ ulogd-netfilter/input/flow/ulogd_inpflow_NFCT.c
@@ -655,7 +655,7 @@ cache_add(struct cache *c, struct conntr
 {
 	ct_get(ct);
 
-	ct->time[UPDATE].tv_sec = ct->time[START].tv_sec = t_now;
+	ct->time[UPDATE].tv_sec = ct->time[START].tv_sec = t_now_local;
 
 	/* order of these two is important for debugging purposes */
 	c->c_cnt++;
@@ -777,7 +777,7 @@ propagate_ct(struct ulogd_pluginstance *
 			|| nfct->tuple[NFCT_DIR_ORIGINAL].dst.v4 == INADDR_LOOPBACK)
 			break;
 
-		ct->time[STOP].tv_sec = t_now;
+		ct->time[STOP].tv_sec = t_now_local;
 
 		propagate_ct_flow(upi, nfct, flags, NFCT_DIR_ORIGINAL, ct);
 	} while (0);
@@ -828,7 +828,7 @@ do_nfct_msg(struct nlmsghdr *nlh, void *
 			break;
 		}
 
-		ct->time[UPDATE].tv_sec = t_now;
+		ct->time[UPDATE].tv_sec = t_now_local;
 
 		if (ct->used > 1) {
 			struct conntrack *ct_tmp = scache_find(pi, nlh->nlmsg_seq);

-- 
-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux