mirror of
https://passt.top/passt
synced 2025-09-18 16:39:12 +02:00
icmp: Remove redundant id field from flow table entry
struct icmp_ping_flow contains a field for the ICMP id of the ping, but this is now redundant, since the id is also stored as the "port" in the common flowsides. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
508adde342
commit
5cffb1bf64
2 changed files with 5 additions and 7 deletions
|
@ -13,7 +13,6 @@
|
|||
* @seq: Last sequence number sent to tap, host order, -1: not sent yet
|
||||
* @sock: "ping" socket
|
||||
* @ts: Last associated activity from tap, seconds
|
||||
* @id: ICMP id for the flow as seen by the guest
|
||||
*/
|
||||
struct icmp_ping_flow {
|
||||
/* Must be first element */
|
||||
|
@ -22,7 +21,6 @@ struct icmp_ping_flow {
|
|||
int seq;
|
||||
int sock;
|
||||
time_t ts;
|
||||
uint16_t id;
|
||||
};
|
||||
|
||||
bool icmp_ping_timer(const struct ctx *c, const struct icmp_ping_flow *pingf,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue