From c6f21fdeca82fb0bf176474e156eb140df2a9abd Mon Sep 17 00:00:00 2001 From: HD Moore Date: Sat, 17 Aug 2013 14:46:55 -0500 Subject: [PATCH] Small typo fix to a comment --- src/output_modules/module_json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output_modules/module_json.c b/src/output_modules/module_json.c index 202cca1..f46def6 100644 --- a/src/output_modules/module_json.c +++ b/src/output_modules/module_json.c @@ -192,7 +192,7 @@ int json_output_file_ip(ipaddr_n_t saddr, ipaddr_n_t daddr, json_object_object_add(obj, "proto", json_object_new_string("tcp")); json_object_object_add(obj, "sport", json_object_new_int(ntohs(tcp->source))); json_object_object_add(obj, "dport", json_object_new_int(ntohs(tcp->dest))); - // Print these as 64-bit bits to keep the printed value unsigned + // Print these as 64-bit values to keep the text output unsigned json_object_object_add(obj, "seq", json_object_new_int64(ntohl(tcp->seq))); json_object_object_add(obj, "ack", json_object_new_int64(ntohl(tcp->ack_seq))); data_offset = sizeof(struct ethhdr) + ip_hdr->ihl*4 + tcp->doff*4;