1
0
mirror of https://passt.top/passt synced 2024-09-28 10:05:47 +00:00

udp: Move flags before ts in struct udp_tap_port, avoid end padding

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio 2022-03-27 11:40:50 +02:00
parent 48582bf47f
commit ad7f57a5b7

6
udp.c
View File

@ -124,17 +124,17 @@
/**
* struct udp_tap_port - Port tracking based on tap-facing source port
* @sock: Socket bound to source port used as index
* @ts: Activity timestamp from tap, used for socket aging
* @flags: Flags for local bind, loopback address/unicast address as source
* @ts: Activity timestamp from tap, used for socket aging
*/
struct udp_tap_port {
int sock;
time_t ts;
uint8_t flags;
#define PORT_LOCAL BIT(0)
#define PORT_LOOPBACK BIT(1)
#define PORT_GUA BIT(2)
time_t ts;
};
/**