diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-11 21:31:30 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-11 21:31:30 +0100 |
commit | b00dd230c7977f049ee462dffae7701e2df1cd2b (patch) | |
tree | 21f196898e07618af48df5faf11b22b8136b679c | |
parent | better packet encode / decode and size display, and colorisation of blobs (diff) | |
download | glouglou-b00dd230c7977f049ee462dffae7701e2df1cd2b.tar.xz glouglou-b00dd230c7977f049ee462dffae7701e2df1cd2b.zip |
fix new connections encoding, they should never be responses
-rw-r--r-- | gg_sniff/pcap.c | 2 |
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 !"); |