You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
link: use struct BridgeId instead of tuple and fix its endianess
The bridge ID defined by attributes BRIDGE_ID and ROOT_ID, both in
bridge and bridge_port, contains a priority field and the MAC address.
Use a named struct to show the meaning of these fields instead of using
a tuple.
Also, fix the endianess of the priority field. The kernel uses a
`u8 prio[2]` field instead of `u16`, with the first byte being the
highest order byte. See: https://elixir.bootlin.com/linux/v6.6.9/source/net/bridge/br_netlink.c#L1633
Note: to make the file bridge.rs to be well organized, moved the
definition of BRIDGE_QUERIER_* close to BridgeQuerierState where it's
used.
Signed-off-by: Íñigo Huguet <[email protected]>
0 commit comments