public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
blob da7e25553867930bcb2541f61ffef70e4807fe6e 831 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
 
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright Red Hat
 * Author: David Gibson <david@gibson.dropbear.id.au>
 *
 * ICMP flow tracking data structures
 */
#ifndef ICMP_FLOW_H
#define ICMP_FLOW_H

/**
 * struct icmp_ping_flow - Descriptor for a flow of ping requests/replies
 * @f:		Generic flow information
 * @seq:	Last sequence number sent to tap, host order, -1: not sent yet
 * @sock:	"ping" socket
 * @ts:		Last associated activity from tap, seconds
 * @ts_storage:	Pad @ts to 64-bit storage to keep state migration sane
 */
struct icmp_ping_flow {
	/* Must be first element */
	struct flow_common f;

	int seq;
	int sock;
	union {
		time_t ts;
		uint64_t ts_storage;
	};
};

bool icmp_ping_timer(const struct ctx *c, const struct icmp_ping_flow *pingf,
		     const struct timespec *now);

#endif /* ICMP_FLOW_H */

debug log:

solving da7e255 ...
found da7e255 in https://archives.passt.top/passt-dev/20250127231532.672363-2-sbrivio@redhat.com/ ||
	https://archives.passt.top/passt-dev/20250128233940.1235855-2-sbrivio@redhat.com/
found fb93801 in https://passt.top/passt
preparing index
index prepared:
100644 fb93801d946ad5aafba2c8275a718b5d445cd421	icmp_flow.h

applying [1/1] https://archives.passt.top/passt-dev/20250127231532.672363-2-sbrivio@redhat.com/
diff --git a/icmp_flow.h b/icmp_flow.h
index fb93801..da7e255 100644

Checking patch icmp_flow.h...
Applied patch icmp_flow.h cleanly.

skipping https://archives.passt.top/passt-dev/20250128233940.1235855-2-sbrivio@redhat.com/ for da7e255
index at:
100644 da7e25553867930bcb2541f61ffef70e4807fe6e	icmp_flow.h

Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).