Lines Matching refs:flags
170 u8 flags = BATADV_NO_FLAGS; in batadv_mcast_mla_rtr_flags_softif_get() local
174 flags |= batadv_mcast_mla_rtr_flags_softif_get_ipv4(dev); in batadv_mcast_mla_rtr_flags_softif_get()
175 flags |= batadv_mcast_mla_rtr_flags_softif_get_ipv6(dev); in batadv_mcast_mla_rtr_flags_softif_get()
179 return flags; in batadv_mcast_mla_rtr_flags_softif_get()
203 u8 flags = BATADV_MCAST_WANT_NO_RTR6; in batadv_mcast_mla_rtr_flags_bridge_get() local
224 flags &= ~BATADV_MCAST_WANT_NO_RTR6; in batadv_mcast_mla_rtr_flags_bridge_get()
230 return flags; in batadv_mcast_mla_rtr_flags_bridge_get()
262 u8 flags = BATADV_MCAST_WANT_NO_RTR4 | BATADV_MCAST_WANT_NO_RTR6; in batadv_mcast_mla_rtr_flags_get() local
264 flags &= batadv_mcast_mla_rtr_flags_softif_get(bat_priv, bridge); in batadv_mcast_mla_rtr_flags_get()
265 flags &= batadv_mcast_mla_rtr_flags_bridge_get(bat_priv, bridge); in batadv_mcast_mla_rtr_flags_get()
267 return flags; in batadv_mcast_mla_rtr_flags_get()
371 struct batadv_mcast_mla_flags *flags) in batadv_mcast_mla_softif_get_ipv4() argument
379 if (flags->tvlv_flags & BATADV_MCAST_WANT_ALL_IPV4) in batadv_mcast_mla_softif_get_ipv4()
392 if (flags->tvlv_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES && in batadv_mcast_mla_softif_get_ipv4()
396 if (!(flags->tvlv_flags & BATADV_MCAST_WANT_NO_RTR4) && in batadv_mcast_mla_softif_get_ipv4()
438 struct batadv_mcast_mla_flags *flags) in batadv_mcast_mla_softif_get_ipv6() argument
446 if (flags->tvlv_flags & BATADV_MCAST_WANT_ALL_IPV6) in batadv_mcast_mla_softif_get_ipv6()
463 if (flags->tvlv_flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES && in batadv_mcast_mla_softif_get_ipv6()
467 if (!(flags->tvlv_flags & BATADV_MCAST_WANT_NO_RTR6) && in batadv_mcast_mla_softif_get_ipv6()
496 struct batadv_mcast_mla_flags *flags) in batadv_mcast_mla_softif_get_ipv6() argument
524 struct batadv_mcast_mla_flags *flags) in batadv_mcast_mla_softif_get() argument
532 ret4 = batadv_mcast_mla_softif_get_ipv4(dev, mcast_list, flags); in batadv_mcast_mla_softif_get()
536 ret6 = batadv_mcast_mla_softif_get_ipv6(dev, mcast_list, flags); in batadv_mcast_mla_softif_get()
589 struct batadv_mcast_mla_flags *flags) in batadv_mcast_mla_bridge_get() argument
593 u8 tvlv_flags = flags->tvlv_flags; in batadv_mcast_mla_bridge_get()
838 static void batadv_mcast_flags_log(struct batadv_priv *bat_priv, u8 flags) in batadv_mcast_flags_log() argument
854 (flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) ? 'U' : '.', in batadv_mcast_flags_log()
855 (flags & BATADV_MCAST_WANT_ALL_IPV4) ? '4' : '.', in batadv_mcast_flags_log()
856 (flags & BATADV_MCAST_WANT_ALL_IPV6) ? '6' : '.', in batadv_mcast_flags_log()
857 !(flags & BATADV_MCAST_WANT_NO_RTR4) ? "R4" : ". ", in batadv_mcast_flags_log()
858 !(flags & BATADV_MCAST_WANT_NO_RTR6) ? "R6" : ". "); in batadv_mcast_flags_log()
871 struct batadv_mcast_mla_flags *flags) in batadv_mcast_mla_flags_update() argument
875 if (!memcmp(flags, &bat_priv->mcast.mla_flags, sizeof(*flags))) in batadv_mcast_mla_flags_update()
878 batadv_mcast_bridge_log(bat_priv, flags); in batadv_mcast_mla_flags_update()
879 batadv_mcast_flags_log(bat_priv, flags->tvlv_flags); in batadv_mcast_mla_flags_update()
881 mcast_data.flags = flags->tvlv_flags; in batadv_mcast_mla_flags_update()
887 bat_priv->mcast.mla_flags = *flags; in batadv_mcast_mla_flags_update()
906 struct batadv_mcast_mla_flags flags; in __batadv_mcast_mla_update() local
909 flags = batadv_mcast_mla_flags_get(bat_priv); in __batadv_mcast_mla_update()
911 ret = batadv_mcast_mla_softif_get(soft_iface, &mcast_list, &flags); in __batadv_mcast_mla_update()
915 ret = batadv_mcast_mla_bridge_get(soft_iface, &mcast_list, &flags); in __batadv_mcast_mla_update()
922 batadv_mcast_mla_flags_update(bat_priv, &flags); in __batadv_mcast_mla_update()
2004 u8 flags, in batadv_mcast_tvlv_ogm_handler() argument
2008 bool orig_mcast_enabled = !(flags & BATADV_TVLV_HANDLER_OGM_CIFNOTFND); in batadv_mcast_tvlv_ogm_handler()
2066 u8 flags = mla_flags->tvlv_flags; in batadv_mcast_flags_print_header() local
2081 (flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) ? 'U' : '.', in batadv_mcast_flags_print_header()
2082 (flags & BATADV_MCAST_WANT_ALL_IPV4) ? '4' : '.', in batadv_mcast_flags_print_header()
2083 (flags & BATADV_MCAST_WANT_ALL_IPV6) ? '6' : '.', in batadv_mcast_flags_print_header()
2084 !(flags & BATADV_MCAST_WANT_NO_RTR4) ? "R4" : ". ", in batadv_mcast_flags_print_header()
2085 !(flags & BATADV_MCAST_WANT_NO_RTR6) ? "R6" : ". "); in batadv_mcast_flags_print_header()
2113 u8 flags; in batadv_mcast_flags_seq_print_text() local
2137 flags = orig_node->mcast_flags; in batadv_mcast_flags_seq_print_text()
2140 (flags & BATADV_MCAST_WANT_ALL_UNSNOOPABLES) in batadv_mcast_flags_seq_print_text()
2142 (flags & BATADV_MCAST_WANT_ALL_IPV4) in batadv_mcast_flags_seq_print_text()
2144 (flags & BATADV_MCAST_WANT_ALL_IPV6) in batadv_mcast_flags_seq_print_text()
2146 !(flags & BATADV_MCAST_WANT_NO_RTR4) in batadv_mcast_flags_seq_print_text()
2148 !(flags & BATADV_MCAST_WANT_NO_RTR6) in batadv_mcast_flags_seq_print_text()
2170 u32 flags = bat_priv->mcast.mla_flags.tvlv_flags; in batadv_mcast_mesh_info_put() local
2186 if (nla_put_u32(msg, BATADV_ATTR_MCAST_FLAGS, flags) || in batadv_mcast_mesh_info_put()