Lines Matching refs:hard_iface
48 * @hard_iface: the interface to use to send the broadcast packet
52 * using the specified interface. Either hard_iface or neigh_node must be not
54 * If neigh_node is NULL, then the packet is broadcasted using hard_iface,
64 struct batadv_hard_iface *hard_iface,
71 bat_priv = netdev_priv(hard_iface->soft_iface);
73 if (hard_iface->if_status != BATADV_IF_ACTIVE)
76 if (unlikely(!hard_iface->net_dev))
79 if (!(hard_iface->net_dev->flags & IFF_UP)) {
81 hard_iface->net_dev->name);
92 ether_addr_copy(ethhdr->h_source, hard_iface->net_dev->dev_addr);
99 skb->dev = hard_iface->net_dev;
118 * @hard_iface: outgoing interface
125 struct batadv_hard_iface *hard_iface)
127 return batadv_send_skb_packet(skb, hard_iface, batadv_broadcast_addr);
602 * @hard_iface: the interface to steal forward packets from
605 * given hard_iface. If hard_iface is NULL forwarding packets on all hard
614 const struct batadv_hard_iface *hard_iface)
624 if (hard_iface &&
625 forw_packet->if_incoming != hard_iface &&
626 forw_packet->if_outgoing != hard_iface)
802 * @hard_iface: the interface to check on
807 * hard_iface may be NULL: In that case the number of transmissions this skb had
815 struct batadv_hard_iface *hard_iface)
819 if (hard_iface)
820 max = hard_iface->num_bcasts;
851 struct batadv_hard_iface *hard_iface;
885 list_for_each_entry_rcu(hard_iface, &batadv_hardif_list, list) {
886 if (hard_iface->soft_iface != soft_iface)
889 if (!batadv_forw_packet_bcasts_left(forw_packet, hard_iface))
896 neigh_node = batadv_hardif_neigh_get(hard_iface,
902 ret = batadv_hardif_no_broadcast(hard_iface, bcast_packet->orig,
924 hard_iface->net_dev->name, type);
935 if (!kref_get_unless_zero(&hard_iface->refcount))
941 batadv_send_broadcast_skb(skb1, hard_iface);
943 batadv_hardif_put(hard_iface);
966 * @hard_iface: the hard interface to cancel and purge bcast/ogm packets on
969 * hard_iface. If hard_iface is NULL, broadcast and OGMv1 packets on all hard
976 const struct batadv_hard_iface *hard_iface)
980 if (hard_iface)
983 __func__, hard_iface->net_dev->name);
991 hard_iface);
997 hard_iface);