aboutgitcodebugslistschat
path: root/fwd.h
diff options
context:
space:
mode:
Diffstat (limited to 'fwd.h')
-rw-r--r--fwd.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/fwd.h b/fwd.h
index c0b30f3..7f52f76 100644
--- a/fwd.h
+++ b/fwd.h
@@ -57,20 +57,16 @@ struct fwd_rule {
#define FWD_NO_HINT (-1)
/**
- * union fwd_listen_ref - information about a single listening socket
+ * struct fwd_listen_ref - information about a single listening socket
* @port: Bound port number of the socket
* @pif: pif in which the socket is listening
* @rule: Index of forwarding rule
*/
-union fwd_listen_ref {
- struct {
- in_port_t port;
- uint8_t pif;
- unsigned rule :FWD_RULE_BITS;
- };
- uint32_t u32;
+struct fwd_listen_ref {
+ in_port_t port;
+ uint8_t pif;
+ unsigned rule :FWD_RULE_BITS;
};
-static_assert(sizeof(union fwd_listen_ref) == sizeof(uint32_t));
enum fwd_ports_mode {
FWD_UNSET = 0,