History

net: bridge: mcast: dump ipv4 querier state

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

Nikolay Aleksandrov committed 5 years ago

Commit c7fa1d91 parent c3fb3695 files · +92 −1Browse files

Showing the changes to include/uapi (2 of 5 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/if_bridge.h +10 −0
  2. include/uapi/linux/if_link.h +1 −0
include/uapi/linux/if_bridge.h+10−0
@@ -770,4 +770,14 @@ struct br_boolopt_multi { · 769 unmodified lines
770 __u32 optval;770 __u32 optval;
771 __u32 optmask;771 __u32 optmask;
772};772};
773
774enum {
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#endif /* _UAPI_LINUX_IF_BRIDGE_H */783#endif /* _UAPI_LINUX_IF_BRIDGE_H */
include/uapi/linux/if_link.h+1−0
@@ -479,6 +479,7 @@ enum { · 478 unmodified lines
479 IFLA_BR_MCAST_MLD_VERSION,479 IFLA_BR_MCAST_MLD_VERSION,
480 IFLA_BR_VLAN_STATS_PER_PORT,480 IFLA_BR_VLAN_STATS_PER_PORT,
481 IFLA_BR_MULTI_BOOLOPT,481 IFLA_BR_MULTI_BOOLOPT,
482 IFLA_BR_MCAST_QUERIER_STATE,
482 __IFLA_BR_MAX,483 __IFLA_BR_MAX,
483};484};
484 485