Add support for dumping global IPv4 querier state, we dump the state only if our own querier is enabled or there has been another external querier which has won the election. For the bridge global state we use a new attribute IFLA_BR_MCAST_QUERIER_STATE and embed the state inside. The structure is: [IFLA_BR_MCAST_QUERIER_STATE] `[BRIDGE_QUERIER_IP_ADDRESS] - ip address of the querier `[BRIDGE_QUERIER_IP_PORT] - bridge port ifindex where the querier was seen (set only if external querier) `[BRIDGE_QUERIER_IP_OTHER_TIMER] - other querier timeout
Showing the changes to include/uapi (2 of 5 files). Show all
Unified · Split
| @@ -770,4 +770,14 @@ struct br_boolopt_multi { · 769 unmodified lines | ||
| 770 | 770 | __u32 optval; |
| 771 | 771 | __u32 optmask; |
| 772 | 772 | }; |
| 773 | + | |
| 774 | +enum { | |
| 775 | + BRIDGE_QUERIER_UNSPEC, | |
| 776 | + BRIDGE_QUERIER_IP_ADDRESS, | |
| 777 | + BRIDGE_QUERIER_IP_PORT, | |
| 778 | + BRIDGE_QUERIER_IP_OTHER_TIMER, | |
| 779 | + BRIDGE_QUERIER_PAD, | |
| 780 | + __BRIDGE_QUERIER_MAX | |
| 781 | +}; | |
| 782 | +#define BRIDGE_QUERIER_MAX (__BRIDGE_QUERIER_MAX - 1) | |
| 773 | 783 | #endif /* _UAPI_LINUX_IF_BRIDGE_H */ |
| @@ -479,6 +479,7 @@ enum { · 478 unmodified lines | ||
| 479 | 479 | IFLA_BR_MCAST_MLD_VERSION, |
| 480 | 480 | IFLA_BR_VLAN_STATS_PER_PORT, |
| 481 | 481 | IFLA_BR_MULTI_BOOLOPT, |
| 482 | + IFLA_BR_MCAST_QUERIER_STATE, | |
| 482 | 483 | __IFLA_BR_MAX, |
| 483 | 484 | }; |
| 484 | 485 | |