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);
596 * @hard_iface: the interface to steal forward packets from
599 * given hard_iface. If hard_iface is NULL forwarding packets on all hard
608 const struct batadv_hard_iface *hard_iface)
618 if (hard_iface &&
619 forw_packet->if_incoming != hard_iface &&
620 forw_packet->if_outgoing != hard_iface)
923 struct batadv_hard_iface *hard_iface;
932 list_for_each_entry_rcu(hard_iface, &batadv_hardif_list, list) {
933 if (hard_iface->soft_iface != bat_priv->soft_iface)
936 if (!kref_get_unless_zero(&hard_iface->refcount))
940 hard_iface)) {
941 batadv_hardif_put(hard_iface);
947 hard_iface);
948 batadv_hardif_put(hard_iface);
1009 * hard_iface may be NULL: In that case the number of transmissions this skb had
1099 * @hard_iface: the hard interface to cancel and purge bcast/ogm packets on
1102 * hard_iface. If hard_iface is NULL, broadcast and OGMv1 packets on all hard
1109 const struct batadv_hard_iface *hard_iface)
1113 if (hard_iface)
1116 __func__, hard_iface->net_dev->name);
1124 hard_iface);
1130 hard_iface);