diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2022-03-27 11:40:50 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-03-29 15:35:38 +0200 |
commit | ad7f57a5b75ae62b48e5ff4f0c302f545dea2603 (patch) | |
tree | 3a5c5f5cf32c5aad3a5dde828dd8fbd028696d9c | |
parent | 48582bf47f5ef7a1bf136ca455d182addad08028 (diff) | |
download | passt-ad7f57a5b75ae62b48e5ff4f0c302f545dea2603.tar passt-ad7f57a5b75ae62b48e5ff4f0c302f545dea2603.tar.gz passt-ad7f57a5b75ae62b48e5ff4f0c302f545dea2603.tar.bz2 passt-ad7f57a5b75ae62b48e5ff4f0c302f545dea2603.tar.lz passt-ad7f57a5b75ae62b48e5ff4f0c302f545dea2603.tar.xz passt-ad7f57a5b75ae62b48e5ff4f0c302f545dea2603.tar.zst passt-ad7f57a5b75ae62b48e5ff4f0c302f545dea2603.zip |
udp: Move flags before ts in struct udp_tap_port, avoid end padding
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | udp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; }; /** |