diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-05-21 11:14:50 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-05-21 11:14:50 +0200 |
commit | d303cfdd55a7fb30bedd1727216e0a3926c4a95c (patch) | |
tree | 9e7668eeda1d350acb708e27ed819a05ef2bffaa /icmp.h | |
parent | af243857faeb095f0dd6f50e588e9a060eaff057 (diff) | |
download | passt-d303cfdd55a7fb30bedd1727216e0a3926c4a95c.tar passt-d303cfdd55a7fb30bedd1727216e0a3926c4a95c.tar.gz passt-d303cfdd55a7fb30bedd1727216e0a3926c4a95c.tar.bz2 passt-d303cfdd55a7fb30bedd1727216e0a3926c4a95c.tar.lz passt-d303cfdd55a7fb30bedd1727216e0a3926c4a95c.tar.xz passt-d303cfdd55a7fb30bedd1727216e0a3926c4a95c.tar.zst passt-d303cfdd55a7fb30bedd1727216e0a3926c4a95c.zip |
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 <sbrivio@redhat.com>
Diffstat (limited to 'icmp.h')
-rw-r--r-- | icmp.h | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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; }; |