aboutgitcodebugslistschat
path: root/udp.c
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2022-03-27 11:40:50 +0200
committerStefano Brivio <sbrivio@redhat.com>2022-03-29 15:35:38 +0200
commitad7f57a5b75ae62b48e5ff4f0c302f545dea2603 (patch)
tree3a5c5f5cf32c5aad3a5dde828dd8fbd028696d9c /udp.c
parent48582bf47f5ef7a1bf136ca455d182addad08028 (diff)
downloadpasst-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>
Diffstat (limited to 'udp.c')
-rw-r--r--udp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/udp.c b/udp.c
index d62d962..2cdbe6c 100644
--- a/udp.c
+++ b/udp.c
@@ -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;
};
/**