Lines Matching refs:mcast_flags
1519 * @mcast_flags: flags indicating the new multicast state
1529 u8 mcast_flags)
1537 if (mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES &&
1538 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES)) {
1548 } else if (!(mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) &&
1549 orig->mcast_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) {
1565 * @mcast_flags: flags indicating the new multicast state
1574 u8 mcast_flags)
1582 if (mcast_flags & BATADV_MCAST_WANT_ALL_IPV4 &&
1583 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4)) {
1593 } else if (!(mcast_flags & BATADV_MCAST_WANT_ALL_IPV4) &&
1594 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV4) {
1610 * @mcast_flags: flags indicating the new multicast state
1619 u8 mcast_flags)
1627 if (mcast_flags & BATADV_MCAST_WANT_ALL_IPV6 &&
1628 !(orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6)) {
1638 } else if (!(mcast_flags & BATADV_MCAST_WANT_ALL_IPV6) &&
1639 orig->mcast_flags & BATADV_MCAST_WANT_ALL_IPV6) {
1655 * @mcast_flags: flags indicating the new multicast state
1664 u8 mcast_flags)
1672 if (!(mcast_flags & BATADV_MCAST_WANT_NO_RTR4) &&
1673 orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR4) {
1683 } else if (mcast_flags & BATADV_MCAST_WANT_NO_RTR4 &&
1684 !(orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR4)) {
1700 * @mcast_flags: flags indicating the new multicast state
1709 u8 mcast_flags)
1717 if (!(mcast_flags & BATADV_MCAST_WANT_NO_RTR6) &&
1718 orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR6) {
1728 } else if (mcast_flags & BATADV_MCAST_WANT_NO_RTR6 &&
1729 !(orig->mcast_flags & BATADV_MCAST_WANT_NO_RTR6)) {
1752 u8 mcast_flags = BATADV_NO_FLAGS;
1754 if (enabled && tvlv_value && tvlv_value_len >= sizeof(mcast_flags))
1755 mcast_flags = *(u8 *)tvlv_value;
1758 mcast_flags |= BATADV_MCAST_WANT_ALL_IPV4;
1759 mcast_flags |= BATADV_MCAST_WANT_ALL_IPV6;
1763 if (mcast_flags & BATADV_MCAST_WANT_ALL_IPV4)
1764 mcast_flags |= BATADV_MCAST_WANT_NO_RTR4;
1766 if (mcast_flags & BATADV_MCAST_WANT_ALL_IPV6)
1767 mcast_flags |= BATADV_MCAST_WANT_NO_RTR6;
1769 return mcast_flags;
1787 u8 mcast_flags;
1789 mcast_flags = batadv_mcast_tvlv_flags_get(orig_mcast_enabled,
1804 batadv_mcast_want_unsnoop_update(bat_priv, orig, mcast_flags);
1805 batadv_mcast_want_ipv4_update(bat_priv, orig, mcast_flags);
1806 batadv_mcast_want_ipv6_update(bat_priv, orig, mcast_flags);
1807 batadv_mcast_want_rtr4_update(bat_priv, orig, mcast_flags);
1808 batadv_mcast_want_rtr6_update(bat_priv, orig, mcast_flags);
1810 orig->mcast_flags = mcast_flags;
1895 orig_node->mcast_flags)) {