Lines Matching defs:bat_priv

134  * @bat_priv: the bat priv with all the soft interface information
149 static bool batadv_mcast_forw_push_dest(struct batadv_priv *bat_priv,
162 if (batadv_bla_is_backbone_gw_orig(bat_priv, orig_node->orig, vid))
177 * @bat_priv: the bat priv with all the soft interface information
190 static int batadv_mcast_forw_push_dests_list(struct batadv_priv *bat_priv,
205 !batadv_mcast_forw_push_dest(bat_priv, skb, vid, orig_node,
218 * @bat_priv: the bat priv with all the soft interface information
230 batadv_mcast_forw_push_tt(struct batadv_priv *bat_priv, struct sk_buff *skb,
242 tt_global = batadv_tt_global_hash_find(bat_priv, addr, vid);
248 if (!batadv_mcast_forw_push_dest(bat_priv, skb, vid,
265 * @bat_priv: the bat priv with all the soft interface information
276 static bool batadv_mcast_forw_push_want_all(struct batadv_priv *bat_priv,
288 head = &bat_priv->mcast.want_all_ipv4_list;
293 head = &bat_priv->mcast.want_all_ipv6_list;
301 ret = batadv_mcast_forw_push_dests_list(bat_priv, skb, vid, head,
311 * @bat_priv: the bat priv with all the soft interface information
322 static bool batadv_mcast_forw_push_want_rtr(struct batadv_priv *bat_priv,
334 head = &bat_priv->mcast.want_all_rtr4_list;
339 head = &bat_priv->mcast.want_all_rtr6_list;
347 ret = batadv_mcast_forw_push_dests_list(bat_priv, skb, vid, head,
478 * @bat_priv: the bat priv with all the soft interface information
492 batadv_mcast_forw_push_dests(struct batadv_priv *bat_priv, struct sk_buff *skb,
501 if (!batadv_mcast_forw_push_tt(bat_priv, skb, vid, &num_dests,
505 if (!batadv_mcast_forw_push_want_all(bat_priv, skb, vid, &num_dests,
510 !batadv_mcast_forw_push_want_rtr(bat_priv, skb, vid, &num_dests,
570 * @bat_priv: the bat priv with all the soft interface information
584 batadv_mcast_forw_push_tvlvs(struct batadv_priv *bat_priv, struct sk_buff *skb,
590 ret = batadv_mcast_forw_push_dests(bat_priv, skb, vid, is_routable,
637 * @bat_priv: the bat priv with all the soft interface information
657 batadv_mcast_forw_scrub_dests(struct batadv_priv *bat_priv,
680 next_neigh = batadv_orig_to_router(bat_priv, next_dest, NULL);
908 * @bat_priv: the bat priv with all the soft interface information
925 static int batadv_mcast_forw_packet(struct batadv_priv *bat_priv,
972 if (batadv_is_my_mac(bat_priv, dest)) {
978 neigh_node = batadv_orig_to_router(bat_priv, dest, NULL);
993 batadv_mcast_forw_scrub_dests(bat_priv, neigh_node, dest,
997 batadv_inc_counter(bat_priv, BATADV_CNT_MCAST_TX);
998 batadv_add_counter(bat_priv, BATADV_CNT_MCAST_TX_BYTES,
1011 batadv_inc_counter(bat_priv, BATADV_CNT_MCAST_TX_LOCAL);
1012 batadv_add_counter(bat_priv,
1017 batadv_inc_counter(bat_priv, BATADV_CNT_MCAST_FWD);
1018 batadv_add_counter(bat_priv, BATADV_CNT_MCAST_FWD_BYTES,
1031 * @bat_priv: the bat priv with all the soft interface information
1047 int batadv_mcast_forw_tracker_tvlv_handler(struct batadv_priv *bat_priv,
1050 return batadv_mcast_forw_packet(bat_priv, skb, false);
1078 * @bat_priv: the bat priv with all the soft interface information
1087 static int batadv_mcast_forw_expand_head(struct batadv_priv *bat_priv,
1113 * @bat_priv: the bat priv with all the soft interface information
1126 bool batadv_mcast_forw_push(struct batadv_priv *bat_priv, struct sk_buff *skb,
1132 if (batadv_mcast_forw_expand_head(bat_priv, skb) < 0)
1137 ret = batadv_mcast_forw_push_tvlvs(bat_priv, skb, vid, is_routable,
1157 * @bat_priv: the bat priv with all the soft interface information
1166 int batadv_mcast_forw_mcsend(struct batadv_priv *bat_priv,
1169 int ret = batadv_mcast_forw_packet(bat_priv, skb, true);