[PATCH libnetfilter_log 5/6] libipulog: use correct index to find attribute in packet.

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

 



The time-stamp is at `NFULA_TIMESTAMP-1` not `NFULA_TIMESTAMP`.

Signed-off-by: Jeremy Sowden <jeremy@xxxxxxxxxx>
---
 src/libipulog_compat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libipulog_compat.c b/src/libipulog_compat.c
index 99cd86622d9b..bf957274ca22 100644
--- a/src/libipulog_compat.c
+++ b/src/libipulog_compat.c
@@ -158,7 +158,7 @@ next_msg:	printf("next\n");
 	else
 		h->upmsg.mark = 0;
 
-	if (tb[NFULA_TIMESTAMP]) {
+	if (tb[NFULA_TIMESTAMP-1]) {
 		/* FIXME: 64bit network-to-host */
 		h->upmsg.timestamp_sec = h->upmsg.timestamp_usec = 0;
 	} else
-- 
2.33.0




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux