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