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:
parent
48582bf47f
commit
ad7f57a5b7
1 changed files with 3 additions and 3 deletions
6
udp.c
6
udp.c
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue