aboutsummaryrefslogtreecommitdiffstats
path: root/gg_sniff/pcap.c
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-04 13:44:00 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-04 13:44:00 +0100
commit0bf601e539b37a47c59973bbb816486482b0b16c (patch)
treea4cf6d8c911b6939076edaa53207dfd550cefa1b /gg_sniff/pcap.c
parentfix signal handler, cmdline args and retval (diff)
downloadglouglou-0bf601e539b37a47c59973bbb816486482b0b16c.tar.xz
glouglou-0bf601e539b37a47c59973bbb816486482b0b16c.zip
fix conntimer event setup
Diffstat (limited to 'gg_sniff/pcap.c')
-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 e66a6d5..4d62791 100644
--- a/gg_sniff/pcap.c
+++ b/gg_sniff/pcap.c
@@ -303,7 +303,7 @@ cb_conntimer(int fd, short why, void *data)
}
gg_log_debug("user: ev_timer leaving with %d active connections and %d active nodes", i, _cap.net->node_count);
- if (event_add(_cap.conntimer_ev, &_cap.conntimer_tv) == -1)
+ if (evtimer_add(_cap.conntimer_ev, &_cap.conntimer_tv) == -1)
gg_log_fatal("user: event_add conntimer failed : %s", strerror(errno));
}