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 --- icmp.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'icmp.h') diff --git a/icmp.h b/icmp.h index 4152b7e..d04eb8c 100644 --- a/icmp.h +++ b/icmp.h @@ -11,14 +11,10 @@ int icmp_sock_init(struct ctx *c); /** * struct icmp_ctx - Execution context for ICMP routines - * @s4: ICMP socket number - * @s6: ICMPv6 socket number * @fd_min: Lowest file descriptor number for ICMP/ICMPv6 ever used * @fd_max: Highest file descriptor number for ICMP/ICMPv6 ever used */ struct icmp_ctx { - int s4; - int s6; int fd_min; int fd_max; }; -- cgit v1.2.3