Lines Matching defs:ip_dst
267 * batadv_arp_ip_dst() - extract the ip_dst field from an ARP packet
271 * Return: the value of the ip_dst field in the ARP packet.
431 __be32 ip_src, ip_dst;
437 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
441 batadv_arp_hw_dst(skb, hdr_size), &ip_dst);
621 * @ip_dst: ipv4 to look up in the DHT
626 * value of the key. ip_dst is the key.
631 batadv_dat_select_candidates(struct batadv_priv *bat_priv, __be32 ip_dst,
647 dat.ip = ip_dst;
653 "%s(): IP=%pI4 hash(IP)=%u\n", __func__, &ip_dst,
1064 __be32 ip_src, ip_dst;
1101 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1103 ipv4_is_loopback(ip_dst) || ipv4_is_multicast(ip_dst) ||
1105 ipv4_is_zeronet(ip_dst) || ipv4_is_lbcast(ip_dst))
1155 * @ip_dst: ARP target IP
1167 __be32 ip_dst, u8 *hw_src, u8 *hw_dst,
1172 skb = arp_create(ARPOP_REPLY, ETH_P_ARP, ip_dst, bat_priv->soft_iface,
1200 __be32 ip_dst, ip_src;
1225 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1229 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1258 skb_new = batadv_dat_arp_create_reply(bat_priv, ip_dst, ip_src,
1275 ret = batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1297 __be32 ip_src, ip_dst;
1316 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1322 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1326 skb_new = batadv_dat_arp_create_reply(bat_priv, ip_dst, ip_src,
1363 __be32 ip_src, ip_dst;
1382 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1385 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1392 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1411 __be32 ip_src, ip_dst;
1430 ip_dst = batadv_arp_ip_dst(skb, hdr_size);
1432 /* If ip_dst is already in cache and has the right mac address,
1441 hw_src, &ip_src, hw_dst, &ip_dst,
1450 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1685 * @ip_dst: the DHCP server IP address
1692 * transmitter (and hw_dst/ip_dst as the target).
1695 __be32 yiaddr, u8 *hw_dst, __be32 ip_dst,
1700 skb = batadv_dat_arp_create_reply(bat_priv, yiaddr, ip_dst, chaddr,
1708 batadv_dat_entry_add(bat_priv, ip_dst, hw_dst, vid);
1712 batadv_dat_forward_data(bat_priv, skb, ip_dst, vid,
1719 &ip_dst, hw_dst, batadv_print_vid(vid));
1856 __be32 ip_dst;
1877 ip_dst = batadv_arp_ip_dst(forw_packet->skb, hdr_size);
1878 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip_dst, vid);
1882 "ARP Request for %pI4: fallback\n", &ip_dst);
1887 "ARP Request for %pI4: fallback prevented\n", &ip_dst);