if (prtb[IFLA_BRPORT_MAB])
print_on_off(PRINT_ANY, "mab", "mab %s ",
rta_getattr_u8(prtb[IFLA_BRPORT_MAB]));
+ if (prtb[IFLA_BRPORT_MCAST_N_GROUPS]) {
+ struct rtattr *at = prtb[IFLA_BRPORT_MCAST_N_GROUPS];
+
+ print_uint(PRINT_ANY, "mcast_n_groups",
+ "mcast_n_groups %u ", rta_getattr_u32(at));
+ }
+ if (prtb[IFLA_BRPORT_MCAST_MAX_GROUPS]) {
+ struct rtattr *at = prtb[IFLA_BRPORT_MCAST_MAX_GROUPS];
+
+ print_uint(PRINT_ANY, "mcast_max_groups",
+ "mcast_max_groups %u ", rta_getattr_u32(at));
+ }
} else
print_stp_state(rta_getattr_u8(attr));
}
" [ mcast_flood {on | off} ]\n"
" [ bcast_flood {on | off} ]\n"
" [ mcast_to_unicast {on | off} ]\n"
+ " [ mcast_max_groups MAX_GROUPS ]\n"
" [ neigh_suppress {on | off} ]\n"
" [ vlan_tunnel {on | off} ]\n"
" [ isolated {on | off} ]\n"
__s8 mcast_flood = -1;
__s8 bcast_flood = -1;
__s8 mcast_to_unicast = -1;
+ __s32 max_groups = -1;
__s8 locked = -1;
__s8 macauth = -1;
__s8 isolated = -1;
mcast_to_unicast = parse_on_off("mcast_to_unicast", *argv, &ret);
if (ret)
return ret;
+ } else if (strcmp(*argv, "mcast_max_groups") == 0) {
+ NEXT_ARG();
+ if (get_s32(&max_groups, *argv, 0))
+ invarg("invalid mcast_max_groups", *argv);
} else if (strcmp(*argv, "cost") == 0) {
NEXT_ARG();
cost = atoi(*argv);
if (mcast_to_unicast >= 0)
addattr8(&req.n, sizeof(req), IFLA_BRPORT_MCAST_TO_UCAST,
mcast_to_unicast);
+ if (max_groups >= 0)
+ addattr32(&req.n, sizeof(req), IFLA_BRPORT_MCAST_MAX_GROUPS,
+ max_groups);
if (learning >= 0)
addattr8(&req.n, sizeof(req), IFLA_BRPORT_LEARNING, learning);
if (learning_sync >= 0)
" [ self ] [ master ]\n"
" bridge vlan { set } vid VLAN_ID dev DEV [ state STP_STATE ]\n"
" [ mcast_router MULTICAST_ROUTER ]\n"
+ " [ mcast_max_groups MAX_GROUPS ]\n"
" bridge vlan { show } [ dev DEV ] [ vid VLAN_ID ]\n"
" bridge vlan { tunnelshow } [ dev DEV ] [ vid VLAN_ID ]\n"
" bridge vlan global { set } vid VLAN_ID dev DEV\n"
addattr8(&req.n, sizeof(req),
BRIDGE_VLANDB_ENTRY_MCAST_ROUTER,
mcast_router);
+ } else if (strcmp(*argv, "mcast_max_groups") == 0) {
+ __u32 max_groups;
+
+ NEXT_ARG();
+ if (get_u32(&max_groups, *argv, 0))
+ invarg("invalid mcast_max_groups", *argv);
+ addattr32(&req.n, sizeof(req),
+ BRIDGE_VLANDB_ENTRY_MCAST_MAX_GROUPS,
+ max_groups);
} else {
if (matches(*argv, "help") == 0)
NEXT_ARG();
print_uint(PRINT_ANY, "mcast_router", "mcast_router %u ",
rta_getattr_u8(vattr));
}
+ if (vtb[BRIDGE_VLANDB_ENTRY_MCAST_N_GROUPS]) {
+ vattr = vtb[BRIDGE_VLANDB_ENTRY_MCAST_N_GROUPS];
+ print_uint(PRINT_ANY, "mcast_n_groups", "mcast_n_groups %u ",
+ rta_getattr_u32(vattr));
+ }
+ if (vtb[BRIDGE_VLANDB_ENTRY_MCAST_MAX_GROUPS]) {
+ vattr = vtb[BRIDGE_VLANDB_ENTRY_MCAST_MAX_GROUPS];
+ print_uint(PRINT_ANY, "mcast_max_groups", "mcast_max_groups %u ",
+ rta_getattr_u32(vattr));
+ }
print_nl();
if (show_stats)
__print_one_vlan_stats(&vstats);