aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-11 21:31:30 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-11 21:31:30 +0100
commitb00dd230c7977f049ee462dffae7701e2df1cd2b (patch)
tree21f196898e07618af48df5faf11b22b8136b679c
parentbetter packet encode / decode and size display, and colorisation of blobs (diff)
downloadglouglou-b00dd230c7977f049ee462dffae7701e2df1cd2b.tar.xz
glouglou-b00dd230c7977f049ee462dffae7701e2df1cd2b.zip
fix new connections encoding, they should never be responses
-rw-r--r--gg_sniff/pcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gg_sniff/pcap.c b/gg_sniff/pcap.c
index 8485eff..e004b99 100644
--- a/gg_sniff/pcap.c
+++ b/gg_sniff/pcap.c
@@ -481,7 +481,7 @@ ip_handle(struct ip *ip, const u_char *pend, u_int wirelen)
pkt.newconn_src = src.s_addr;
pkt.newconn_dst = dst.s_addr;
pkt.newconn_proto = proto;
- GG_PKTDATA_SIZE_ENCODE(pkt.newconn_size, ip->ip_len, response);
+ GG_PKTDATA_SIZE_ENCODE(pkt.newconn_size, ip->ip_len, 0);
gg_client_send(_cap.ggcli, &pkt);
} else {
gg_log_warn("user: captured connection close w/o open !");