Lines Matching defs: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->mesh_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)
129 return batadv_send_skb_packet(skb, hard_iface, broadcast_addr);
598 * @hard_iface: the interface to steal forward packets from
601 * given hard_iface. If hard_iface is NULL forwarding packets on all hard
610 const struct batadv_hard_iface *hard_iface)
620 if (hard_iface &&
621 forw_packet->if_incoming != hard_iface &&
622 forw_packet->if_outgoing != hard_iface)
925 struct batadv_hard_iface *hard_iface;
934 list_for_each_entry_rcu(hard_iface, &batadv_hardif_list, list) {
935 if (hard_iface->mesh_iface != bat_priv->mesh_iface)
938 if (!kref_get_unless_zero(&hard_iface->refcount))
942 hard_iface)) {
943 batadv_hardif_put(hard_iface);
949 hard_iface);
950 batadv_hardif_put(hard_iface);
1011 * hard_iface may be NULL: In that case the number of transmissions this skb had
1101 * @hard_iface: the hard interface to cancel and purge bcast/ogm packets on
1104 * hard_iface. If hard_iface is NULL, broadcast and OGMv1 packets on all hard
1111 const struct batadv_hard_iface *hard_iface)
1115 if (hard_iface)
1118 __func__, hard_iface->net_dev->name);
1126 hard_iface);
1132 hard_iface);