Lines Matching defs:ip_dst
266 * batadv_arp_ip_dst() - extract the ip_dst field from an ARP packet
270 * Return: the value of the ip_dst field in the ARP packet.
429 __be32 ip_src, ip_dst;
435 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
439 batadv_arp_hw_dst(skb, hdr_size), &ip_dst);
618 * @ip_dst: ipv4 to look up in the DHT
623 * value of the key. ip_dst is the key.
628 batadv_dat_select_candidates(struct batadv_priv *bat_priv, __be32 ip_dst,
644 dat.ip = ip_dst;
650 "%s(): IP=%pI4 hash(IP)=%u\n", __func__, &ip_dst,
1005 __be32 ip_src, ip_dst;
1042 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1044 ipv4_is_loopback(ip_dst) || ipv4_is_multicast(ip_dst) ||
1046 ipv4_is_zeronet(ip_dst) || ipv4_is_lbcast(ip_dst))
1096 * @ip_dst: ARP target IP
1108 __be32 ip_dst, u8 *hw_src, u8 *hw_dst,
1113 skb = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_dst, bat_priv->soft_iface,
1141 __be32 ip_dst, ip_src;
1166 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1170 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1199 skb_new = batadv_dat_arp_create_reply(bat_priv, ip_dst, ip_src,
1216 ret = batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1237 __be32 ip_src, ip_dst;
1256 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1262 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1266 skb_new = batadv_dat_arp_create_reply(bat_priv, ip_dst, ip_src,
1302 __be32 ip_src, ip_dst;
1321 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1324 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1331 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1350 __be32 ip_src, ip_dst;
1369 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1371 /* If ip_dst is already in cache and has the right mac address,
1380 hw_src, &ip_src, hw_dst, &ip_dst,
1389 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1623 * @ip_dst: the DHCP server IP address
1630 * transmitter (and hw_dst/ip_dst as the target).
1633 __be32 yiaddr, u8 *hw_dst, __be32 ip_dst,
1638 skb = batadv_dat_arp_create_reply(bat_priv, yiaddr, ip_dst, chaddr,
1646 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1650 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1657 &ip_dst, hw_dst, batadv_print_vid(vid));
1794 __be32 ip_dst;
1815 ip_dst = batadv_arp_ip_dst(forw_packet->skb, hdr_size);
1816 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1820 "ARP Request for %pI4: fallback\n", &ip_dst);
1825 "ARP Request for %pI4: fallback prevented\n", &ip_dst);