From 1d807fc720bda7ec446c683bbc1a5e32897ca04e Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Wed, 17 Mar 2021 10:57:44 +0100 Subject: passt: Introduce ICMP echo proxy It's nice to be able to confirm connectivity using ICMP or ICMPv6 echo requests, and "ping" sockets on Linux (IPPROTO_ICMP datagram) allow us to do that without any special capability. Signed-off-by: Stefano Brivio --- passt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'passt.h') diff --git a/passt.h b/passt.h index ff16134..9844858 100644 --- a/passt.h +++ b/passt.h @@ -1,5 +1,6 @@ #define UNIX_SOCK_PATH "/tmp/passt.socket" +#include "icmp.h" #include "tcp.h" /** @@ -39,5 +40,6 @@ struct ctx { char ifn[IF_NAMESIZE]; + struct icmp_ctx icmp; struct tcp_ctx tcp; }; -- cgit v1.2.3