/kernel/linux/linux-5.10/samples/bpf/ |
H 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() [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | arp.h | 68 void arp_send(int type, int ptype, __be32 dest_ip, 76 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
|
/kernel/linux/linux-6.6/include/net/ |
H A D | arp.h | 62 void arp_send(int type, int ptype, __be32 dest_ip, 70 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/ |
H A D | mtk_ppe_debugfs.c | 114 ai.dest = &entry->ipv4.orig.dest_ip; in mtk_ppe_debugfs_foe_show() 123 ai.dest = &entry->ipv6.dest_ip; in mtk_ppe_debugfs_foe_show() 139 ai.dest = &entry->ipv4.new.dest_ip; in mtk_ppe_debugfs_foe_show()
|
H A D | mtk_ppe.h | 144 u32 dest_ip; member 191 u32 dest_ip[4]; member 215 u32 dest_ip[4]; member
|
H A D | mtk_ppe.c | 150 hv2 = e->ipv4.orig.dest_ip; in mtk_ppe_hash_entry() 155 hv1 = e->ipv6.src_ip[3] ^ e->ipv6.dest_ip[3]; in mtk_ppe_hash_entry() 158 hv2 = e->ipv6.src_ip[2] ^ e->ipv6.dest_ip[2]; in mtk_ppe_hash_entry() 159 hv2 ^= e->ipv6.dest_ip[0]; in mtk_ppe_hash_entry() 161 hv3 = e->ipv6.src_ip[1] ^ e->ipv6.dest_ip[1]; in mtk_ppe_hash_entry() 323 t->dest_ip = be32_to_cpu(dest_addr); in mtk_foe_entry_set_ipv4_tuple() 355 dest = entry->ipv6.dest_ip; in mtk_foe_entry_set_ipv6_tuple()
|
/kernel/linux/linux-5.10/net/bridge/ |
H A D | br_arp_nd_proxy.c | 44 struct net_device *dev, __be32 dest_ip, __be32 src_ip, in br_arp_send() 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() 43 br_arp_send(struct net_bridge *br, struct net_bridge_port *p, struct net_device *dev, __be32 dest_ip, __be32 src_ip, const unsigned char *dest_hw, const unsigned char *src_hw, const unsigned char *target_hw, __be16 vlan_proto, u16 vlan_tci) br_arp_send() argument
|
/kernel/linux/linux-6.6/net/bridge/ |
H A D | br_arp_nd_proxy.c | 44 struct net_device *dev, __be32 dest_ip, __be32 src_ip, in br_arp_send() 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() 43 br_arp_send(struct net_bridge *br, struct net_bridge_port *p, struct net_device *dev, __be32 dest_ip, __be32 src_ip, const unsigned char *dest_hw, const unsigned char *src_hw, const unsigned char *target_hw, __be16 vlan_proto, u16 vlan_tci) br_arp_send() argument
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/ |
H A D | i40iw_hw.c | 623 info->dest_ip[0] = cpu_to_le32(cminfo->loc_addr[0]); in i40iw_manage_qhash() 624 info->dest_ip[1] = cpu_to_le32(cminfo->loc_addr[1]); in i40iw_manage_qhash() 625 info->dest_ip[2] = cpu_to_le32(cminfo->loc_addr[2]); in i40iw_manage_qhash() 626 info->dest_ip[3] = cpu_to_le32(cminfo->loc_addr[3]); in i40iw_manage_qhash() 643 info->dest_ip, in i40iw_manage_qhash() 649 info->dest_ip, in i40iw_manage_qhash()
|
H A D | i40iw_ctrl.c | 1372 LS_64(info->dest_ip[0], I40IW_CQPSQ_QHASH_ADDR3)); in i40iw_sc_manage_qhash_table_entry() 1376 LS_64(info->dest_ip[0], I40IW_CQPSQ_QHASH_ADDR0) | in i40iw_sc_manage_qhash_table_entry() 1377 LS_64(info->dest_ip[1], I40IW_CQPSQ_QHASH_ADDR1)); in i40iw_sc_manage_qhash_table_entry() 1381 LS_64(info->dest_ip[2], I40IW_CQPSQ_QHASH_ADDR2) | in i40iw_sc_manage_qhash_table_entry() 1382 LS_64(info->dest_ip[3], I40IW_CQPSQ_QHASH_ADDR3)); in i40iw_sc_manage_qhash_table_entry()
|
H A D | i40iw_type.h | 931 u32 dest_ip[4]; member
|
/kernel/linux/linux-5.10/net/ipv4/ |
H 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()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | arp.c | 301 static void arp_send_dst(int type, int ptype, __be32 dest_ip, in arp_send_dst() argument 314 skb = arp_create(type, ptype, dest_ip, dev, src_ip, in arp_send_dst() 323 void arp_send(int type, int ptype, __be32 dest_ip, in arp_send() argument 328 arp_send_dst(type, ptype, dest_ip, dev, src_ip, dest_hw, src_hw, in arp_send() 544 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, in arp_create() argument 641 memcpy(arp_ptr, &dest_ip, 4); in arp_create()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | ipsec.c | 627 static int udp_ping_send(int sock[2], in_addr_t dest_ip, unsigned int port, in udp_ping_send() argument 637 server.sin_addr.s_addr = dest_ip; in udp_ping_send() 664 static int udp_ping_reply(int sock[2], in_addr_t dest_ip, unsigned int port, in udp_ping_reply() argument 674 server.sin_addr.s_addr = dest_ip; in udp_ping_reply() 703 typedef int (*ping_f)(int sock[2], in_addr_t dest_ip, unsigned int port,
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/irdma/ |
H A D | hw.c | 2490 info->dest_ip[0] = cminfo->loc_addr[0]; in irdma_manage_qhash() 2491 info->dest_ip[1] = cminfo->loc_addr[1]; in irdma_manage_qhash() 2492 info->dest_ip[2] = cminfo->loc_addr[2]; in irdma_manage_qhash() 2493 info->dest_ip[3] = cminfo->loc_addr[3]; in irdma_manage_qhash() 2516 info->src_port, info->dest_ip, info->src_ip, in irdma_manage_qhash() 2524 info->src_port, info->dest_ip, info->src_ip, in irdma_manage_qhash()
|
H A D | main.h | 222 u32 dest_ip[4]; member
|
H A D | verbs.c | 3962 if (!memcmp(mc_qht_el->mc_info.dest_ip, ip_mcast, in mcast_list_lookup_ip() 3963 sizeof(mc_qht_el->mc_info.dest_ip))) in mcast_list_lookup_ip() 4089 memcpy(mc_qht_elem->mc_info.dest_ip, ip_addr, in irdma_attach_mcast() 4090 sizeof(mc_qht_elem->mc_info.dest_ip)); in irdma_attach_mcast()
|
H A D | type.h | 1119 u32 dest_ip[4]; member
|
H A D | ctrl.c | 320 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR3, info->dest_ip[0])); in irdma_sc_manage_qhash_table_entry() 323 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR0, info->dest_ip[0]) | in irdma_sc_manage_qhash_table_entry() 324 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR1, info->dest_ip[1])); in irdma_sc_manage_qhash_table_entry() 327 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR2, info->dest_ip[2]) | in irdma_sc_manage_qhash_table_entry() 328 FIELD_PREP(IRDMA_CQPSQ_QHASH_ADDR3, info->dest_ip[3])); in irdma_sc_manage_qhash_table_entry()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1d.sh | 557 local dest_ip=$1; shift 563 -b $next_hop_mac -B $dest_ip \
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/ |
H A D | vxlan_bridge_1d_ipv6.sh | 678 local dest_ip=$1; shift 686 -b $next_hop_mac -B $dest_ip \
|
H A D | vxlan_bridge_1d.sh | 557 local dest_ip=$1; shift 563 -b $next_hop_mac -B $dest_ip \
|
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | ipsec.c | 668 static int udp_ping_send(int sock[2], in_addr_t dest_ip, unsigned int port, in udp_ping_send() argument 678 server.sin_addr.s_addr = dest_ip; in udp_ping_send() 705 static int udp_ping_reply(int sock[2], in_addr_t dest_ip, unsigned int port, in udp_ping_reply() argument 715 server.sin_addr.s_addr = dest_ip; in udp_ping_reply() 744 typedef int (*ping_f)(int sock[2], in_addr_t dest_ip, unsigned int port,
|
/kernel/linux/linux-5.10/drivers/net/bonding/ |
H A D | bond_main.c | 2711 static void bond_arp_send(struct slave *slave, int arp_op, __be32 dest_ip, in bond_arp_send() argument 2720 arp_op, &dest_ip, &src_ip); in bond_arp_send() 2722 skb = arp_create(arp_op, ETH_P_ARP, dest_ip, slave_dev, src_ip, in bond_arp_send()
|
/kernel/linux/linux-6.6/drivers/net/bonding/ |
H A D | bond_main.c | 2936 static void bond_arp_send(struct slave *slave, int arp_op, __be32 dest_ip, in bond_arp_send() argument 2944 arp_op, &dest_ip, &src_ip); in bond_arp_send() 2946 skb = arp_create(arp_op, ETH_P_ARP, dest_ip, slave_dev, src_ip, in bond_arp_send()
|