From d303cfdd55a7fb30bedd1727216e0a3926c4a95c Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 21 May 2021 11:14:50 +0200 Subject: icmp: Implement ping tracking based on echo identifiers Open and bind a socket for each possible ICMP/ICMPv6 echo identifier, and add a tracking mechanism. Otherwise, multiple pings in parallel won't work, and a single ping to a different destination would make an existing ping sequence stop working. Signed-off-by: Stefano Brivio --- util.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'util.c') diff --git a/util.c b/util.c index 9ccd9f6..9748cbe 100644 --- a/util.c +++ b/util.c @@ -189,9 +189,6 @@ int sock_l4(struct ctx *c, int af, uint16_t proto, uint16_t port) return -1; } - if (proto == IPPROTO_ICMP || proto == IPPROTO_ICMPV6) - goto epoll_add; - if (af == AF_INET) { sa = (const struct sockaddr *)&addr4; sl = sizeof(addr4); -- cgit v1.2.3