From cec225302ad22487274ee22148f88a1908f0b2d3 Mon Sep 17 00:00:00 2001 From: Eric Date: Mon, 2 Sep 2013 13:28:17 -0400 Subject: [PATCH] tcp seq is 32-bits --- src/probe_modules/module_tcp_synscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/probe_modules/module_tcp_synscan.c b/src/probe_modules/module_tcp_synscan.c index c578c4a..52f4863 100644 --- a/src/probe_modules/module_tcp_synscan.c +++ b/src/probe_modules/module_tcp_synscan.c @@ -127,7 +127,7 @@ void synscan_process_packet(const u_char *packet, fs_add_uint64(fs, "sport", (uint64_t) ntohs(tcp->source)); fs_add_uint64(fs, "dport", (uint64_t) ntohs(tcp->dest)); - fs_add_uint64(fs, "seqnum", (uint64_t) ntohs(tcp->seq)); + fs_add_uint64(fs, "seqnum", (uint64_t) ntohl(tcp->seq)); fs_add_uint64(fs, "acknum", (uint64_t) ntohl(tcp->ack_seq)); fs_add_uint64(fs, "window", (uint64_t) ntohs(tcp->window));