diff options
author | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-10 00:04:28 +0100 |
---|---|---|
committer | Laurent Ghigonis <laurent@p1sec.com> | 2012-12-10 00:04:28 +0100 |
commit | beb120011f87a180c131cd79a1e80986d1da881d (patch) | |
tree | 8e2b1dfa53d297d154714f1ea7ea2c59dd68643c | |
parent | support for client side usage, and fix connection id handling (diff) | |
download | glouglou-beb120011f87a180c131cd79a1e80986d1da881d.tar.xz glouglou-beb120011f87a180c131cd79a1e80986d1da881d.zip |
follow libgget API breakage
-rw-r--r-- | gg_sniff/gg_sniff.c | 2 | ||||
-rw-r--r-- | gg_sniff/pcap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gg_sniff/gg_sniff.c b/gg_sniff/gg_sniff.c index 91585b7..467b59c 100644 --- a/gg_sniff/gg_sniff.c +++ b/gg_sniff/gg_sniff.c @@ -101,7 +101,7 @@ main(int argc, char **argv) _ev_base = event_base_new(); - net = ggnet_new(); + net = ggnet_new(GGNET_MANAGE_CONNID_TRUE); if (!net) goto quit; ggcli = gg_client_connect(_ev_base, ggserv_ip, ggserv_port, NULL, NULL, NULL); diff --git a/gg_sniff/pcap.c b/gg_sniff/pcap.c index 52416e5..27a411a 100644 --- a/gg_sniff/pcap.c +++ b/gg_sniff/pcap.c @@ -474,7 +474,7 @@ ip_handle(struct ip *ip, const u_char *pend, u_int wirelen) } } else { if (!close) { - conn = ggnet_conn_add(_cap.net, &src, src_port, &dst, dst_port, proto, size); + conn = ggnet_conn_add(_cap.net, &src, src_port, &dst, dst_port, proto, size, -1); pkt.type = PACKET_NEWCONN; pkt.newconn_id = conn->id; pkt.newconn_src = src.s_addr; |