networkd: allow setting of multicast querier for linux bridge (#3051)

This commit is contained in:
Susant Sahani
2016-04-18 13:45:52 +02:00
committed by Lennart Poettering
parent c9d73e83f5
commit 3fef7a3fcd
6 changed files with 102 additions and 7 deletions
+37 -6
View File
@@ -95,12 +95,43 @@ static const NLType rtnl_link_info_data_macvlan_types[] = {
};
static const NLType rtnl_link_info_data_bridge_types[] = {
[IFLA_BR_FORWARD_DELAY] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_HELLO_TIME] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_MAX_AGE] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_AGEING_TIME] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_STP_STATE] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_PRIORITY] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_FORWARD_DELAY] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_HELLO_TIME] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_MAX_AGE] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_AGEING_TIME] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_STP_STATE] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_PRIORITY] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_VLAN_FILTERING] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_VLAN_PROTOCOL] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_GROUP_FWD_MASK] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_ROOT_PORT] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_ROOT_PATH_COST] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_TOPOLOGY_CHANGE] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_TOPOLOGY_CHANGE_DETECTED] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_HELLO_TIMER] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_TCN_TIMER] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_TOPOLOGY_CHANGE_TIMER] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_GC_TIMER] = { .type = NETLINK_TYPE_U64 },
[IFLA_BR_GROUP_ADDR] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_FDB_FLUSH] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_MCAST_ROUTER] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_MCAST_SNOOPING] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_MCAST_QUERY_USE_IFADDR] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_MCAST_QUERIER] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_MCAST_HASH_ELASTICITY] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_MCAST_HASH_MAX] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_MCAST_LAST_MEMBER_CNT] = { .type = NETLINK_TYPE_U32 },
[IFLA_BR_MCAST_STARTUP_QUERY_CNT] = { .type = NETLINK_TYPE_U16 },
[IFLA_BR_MCAST_LAST_MEMBER_INTVL] = { .type = NETLINK_TYPE_U64 },
[IFLA_BR_MCAST_MEMBERSHIP_INTVL] = { .type = NETLINK_TYPE_U64 },
[IFLA_BR_MCAST_QUERIER_INTVL] = { .type = NETLINK_TYPE_U64 },
[IFLA_BR_MCAST_QUERY_INTVL] = { .type = NETLINK_TYPE_U64 },
[IFLA_BR_MCAST_QUERY_RESPONSE_INTVL] = { .type = NETLINK_TYPE_U64 },
[IFLA_BR_MCAST_STARTUP_QUERY_INTVL] = { .type = NETLINK_TYPE_U64 },
[IFLA_BR_NF_CALL_IPTABLES] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_NF_CALL_IP6TABLES] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_NF_CALL_ARPTABLES] = { .type = NETLINK_TYPE_U8 },
[IFLA_BR_VLAN_DEFAULT_PVID] = { .type = NETLINK_TYPE_U16 },
};
static const NLType rtnl_link_info_data_vlan_types[] = {