aboutgitcodebugslistschat
path: root/icmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'icmp.c')
-rw-r--r--icmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/icmp.c b/icmp.c
index 9a3c740..dd4e3a4 100644
--- a/icmp.c
+++ b/icmp.c
@@ -135,6 +135,9 @@ int icmp_tap_handler(struct ctx *c, int af, void *addr,
*/
int icmp_sock_init(struct ctx *c)
{
+ c->icmp.fd_min = INT_MAX;
+ c->icmp.fd_max = 0;
+
if (c->v4 && (c->icmp.s4 = sock_l4_add(c, 4, IPPROTO_ICMP, 0)) < 0)
return -1;