aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--icmp.h7
-rw-r--r--passt.c2
-rw-r--r--passt.h2
-rw-r--r--udp.h2
4 files changed, 1 insertions, 12 deletions
diff --git a/icmp.h b/icmp.h
index 08870dc..8b8fa40 100644
--- a/icmp.h
+++ b/icmp.h
@@ -20,12 +20,5 @@ int icmp_tap_handler(const struct ctx *c, uint8_t pif, sa_family_t af,
struct iov_tail *data, const struct timespec *now);
void icmp_init(void);
-/**
- * struct icmp_ctx - Execution context for ICMP routines
- * @timer_run: Timestamp of most recent timer run
- */
-struct icmp_ctx {
- struct timespec timer_run;
-};
#endif /* ICMP_H */
diff --git a/passt.c b/passt.c
index c632b60..5054551 100644
--- a/passt.c
+++ b/passt.c
@@ -144,7 +144,7 @@ static void random_init(struct ctx *c)
*/
static void timer_init(struct ctx *c, const struct timespec *now)
{
- c->tcp.timer_run = c->udp.timer_run = c->icmp.timer_run = *now;
+ c->tcp.timer_run = *now;
}
/**
diff --git a/passt.h b/passt.h
index a20148e..a61baca 100644
--- a/passt.h
+++ b/passt.h
@@ -200,7 +200,6 @@ struct ip6_ctx {
* @no_udp: Disable UDP operation
* @udp: Context for UDP protocol handler
* @no_icmp: Disable ICMP operation
- * @icmp: Context for ICMP protocol handler
* @mtu: MTU passed via DHCP/NDP
* @no_dns: Do not source/use DNS servers for any purpose
* @no_dns_search: Do not source/use domain search lists for any purpose
@@ -286,7 +285,6 @@ struct ctx {
int no_udp;
struct udp_ctx udp;
int no_icmp;
- struct icmp_ctx icmp;
int no_dns;
int no_dns_search;
diff --git a/udp.h b/udp.h
index 9ea7de6..b50283e 100644
--- a/udp.h
+++ b/udp.h
@@ -26,14 +26,12 @@ void udp_update_l2_buf(const unsigned char *eth_d);
* struct udp_ctx - Execution context for UDP
* @scan_in: Port scanning state for inbound packets
* @scan_out: Port scanning state for outbound packets
- * @timer_run: Timestamp of most recent timer run
* @timeout: Timeout for unidirectional flows (in s)
* @stream_timeout: Timeout for stream-like flows (in s)
*/
struct udp_ctx {
struct fwd_scan scan_in;
struct fwd_scan scan_out;
- struct timespec timer_run;
int timeout;
int stream_timeout;
};