/linux/samples/bpf/ |
A D | xdp_router_ipv4_kern.c | 142 __be32 src_ip = 0, dest_ip = 0; in xdp_router_ipv4_prog() local 144 ipproto = parse_ipv4(data, nh_off, data_end, &src_ip, &dest_ip); in xdp_router_ipv4_prog() 145 direct_entry = bpf_map_lookup_elem(&exact_match, &dest_ip); in xdp_router_ipv4_prog() 154 key4.b8[4] = dest_ip & 0xff; in xdp_router_ipv4_prog() 155 key4.b8[5] = (dest_ip >> 8) & 0xff; in xdp_router_ipv4_prog() 156 key4.b8[6] = (dest_ip >> 16) & 0xff; in xdp_router_ipv4_prog() 157 key4.b8[7] = (dest_ip >> 24) & 0xff; in xdp_router_ipv4_prog() 164 dest_mac = bpf_map_lookup_elem(&arp_table, &dest_ip); in xdp_router_ipv4_prog() 168 dest_ip = prefix_value->gw; in xdp_router_ipv4_prog() 169 dest_mac = bpf_map_lookup_elem(&arp_table, &dest_ip); in xdp_router_ipv4_prog()
|
/linux/drivers/net/ethernet/mediatek/ |
A D | mtk_ppe.c | 89 hv2 = e->ipv4.orig.dest_ip; in mtk_ppe_hash_entry() 94 hv1 = e->ipv6.src_ip[3] ^ e->ipv6.dest_ip[3]; in mtk_ppe_hash_entry() 97 hv2 = e->ipv6.src_ip[2] ^ e->ipv6.dest_ip[2]; in mtk_ppe_hash_entry() 98 hv2 ^= e->ipv6.dest_ip[0]; in mtk_ppe_hash_entry() 100 hv3 = e->ipv6.src_ip[1] ^ e->ipv6.dest_ip[1]; in mtk_ppe_hash_entry() 232 t->dest_ip = be32_to_cpu(dest_addr); in mtk_foe_entry_set_ipv4_tuple() 263 dest = entry->ipv6.dest_ip; in mtk_foe_entry_set_ipv6_tuple()
|
A D | mtk_ppe.h | 105 u32 dest_ip; member 152 u32 dest_ip[4]; member 176 u32 dest_ip[4]; member
|
A D | mtk_ppe_debugfs.c | 112 ai.dest = &entry->ipv4.orig.dest_ip; in mtk_ppe_debugfs_foe_show() 121 ai.dest = &entry->ipv6.dest_ip; in mtk_ppe_debugfs_foe_show() 137 ai.dest = &entry->ipv4.new.dest_ip; in mtk_ppe_debugfs_foe_show()
|
/linux/include/net/ |
A D | arp.h | 68 void arp_send(int type, int ptype, __be32 dest_ip, 75 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
|
/linux/net/bridge/ |
A D | br_arp_nd_proxy.c | 44 struct net_device *dev, __be32 dest_ip, __be32 src_ip, in br_arp_send() argument 55 dev->name, &dest_ip, dest_hw, &src_ip, src_hw); in br_arp_send() 58 arp_send(ARPOP_REPLY, ETH_P_ARP, dest_ip, dev, src_ip, in br_arp_send() 63 skb = arp_create(ARPOP_REPLY, ETH_P_ARP, dest_ip, dev, src_ip, in br_arp_send()
|
/linux/net/ipv4/ |
A D | arp.c | 300 static void arp_send_dst(int type, int ptype, __be32 dest_ip, in arp_send_dst() argument 313 skb = arp_create(type, ptype, dest_ip, dev, src_ip, in arp_send_dst() 322 void arp_send(int type, int ptype, __be32 dest_ip, in arp_send() argument 327 arp_send_dst(type, ptype, dest_ip, dev, src_ip, dest_hw, src_hw, in arp_send() 523 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, in arp_create() argument 620 memcpy(arp_ptr, &dest_ip, 4); in arp_create()
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | vxlan_bridge_1d.sh | 557 local dest_ip=$1; shift 563 -b $next_hop_mac -B $dest_ip \
|
/linux/drivers/infiniband/hw/irdma/ |
A D | hw.c | 2466 info->dest_ip[0] = cminfo->loc_addr[0]; in irdma_manage_qhash() 2467 info->dest_ip[1] = cminfo->loc_addr[1]; in irdma_manage_qhash() 2468 info->dest_ip[2] = cminfo->loc_addr[2]; in irdma_manage_qhash() 2469 info->dest_ip[3] = cminfo->loc_addr[3]; in irdma_manage_qhash() 2492 info->src_port, info->dest_ip, info->src_ip, in irdma_manage_qhash() 2500 info->src_port, info->dest_ip, info->src_ip, in irdma_manage_qhash()
|
A D | main.h | 220 u32 dest_ip[4]; member
|
A D | ctrl.c | 296 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR3, info->dest_ip[0])); in irdma_sc_manage_qhash_table_entry() 299 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR0, info->dest_ip[0]) | in irdma_sc_manage_qhash_table_entry() 300 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR1, info->dest_ip[1])); in irdma_sc_manage_qhash_table_entry() 303 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR2, info->dest_ip[2]) | in irdma_sc_manage_qhash_table_entry() 304 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR3, info->dest_ip[3])); in irdma_sc_manage_qhash_table_entry()
|
A D | verbs.c | 3836 if (!memcmp(mc_qht_el->mc_info.dest_ip, ip_mcast, in mcast_list_lookup_ip() 3837 sizeof(mc_qht_el->mc_info.dest_ip))) in mcast_list_lookup_ip() 3969 memcpy(mc_qht_elem->mc_info.dest_ip, ip_addr, in irdma_attach_mcast() 3970 sizeof(mc_qht_elem->mc_info.dest_ip)); in irdma_attach_mcast()
|
A D | type.h | 1156 u32 dest_ip[4]; member
|
/linux/tools/testing/selftests/net/ |
A D | ipsec.c | 630 static int udp_ping_send(int sock[2], in_addr_t dest_ip, unsigned int port, in udp_ping_send() argument 640 server.sin_addr.s_addr = dest_ip; in udp_ping_send() 667 static int udp_ping_reply(int sock[2], in_addr_t dest_ip, unsigned int port, in udp_ping_reply() argument 677 server.sin_addr.s_addr = dest_ip; in udp_ping_reply() 706 typedef int (*ping_f)(int sock[2], in_addr_t dest_ip, unsigned int port,
|
/linux/drivers/net/bonding/ |
A D | bond_main.c | 2799 static void bond_arp_send(struct slave *slave, int arp_op, __be32 dest_ip, in bond_arp_send() argument 2808 arp_op, &dest_ip, &src_ip); in bond_arp_send() 2810 skb = arp_create(arp_op, ETH_P_ARP, dest_ip, slave_dev, src_ip, in bond_arp_send()
|