Home
last modified time | relevance | path

Searched refs:dest_ip (Results 1 – 9 of 9) sorted by relevance

/Linux-v5.4/samples/bpf/
Dxdp_router_ipv4_kern.c142 __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-v5.4/include/net/
Darp.h68 void arp_send(int type, int ptype, __be32 dest_ip,
75 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
/Linux-v5.4/net/bridge/
Dbr_arp_nd_proxy.c44 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-v5.4/drivers/infiniband/hw/i40iw/
Di40iw_hw.c624 info->dest_ip[0] = cpu_to_le32(cminfo->loc_addr[0]); in i40iw_manage_qhash()
625 info->dest_ip[1] = cpu_to_le32(cminfo->loc_addr[1]); in i40iw_manage_qhash()
626 info->dest_ip[2] = cpu_to_le32(cminfo->loc_addr[2]); in i40iw_manage_qhash()
627 info->dest_ip[3] = cpu_to_le32(cminfo->loc_addr[3]); in i40iw_manage_qhash()
644 info->dest_ip, in i40iw_manage_qhash()
650 info->dest_ip, in i40iw_manage_qhash()
Di40iw_ctrl.c1283 LS_64(info->dest_ip[0], I40IW_CQPSQ_QHASH_ADDR3)); in i40iw_sc_manage_qhash_table_entry()
1287 LS_64(info->dest_ip[0], I40IW_CQPSQ_QHASH_ADDR0) | in i40iw_sc_manage_qhash_table_entry()
1288 LS_64(info->dest_ip[1], I40IW_CQPSQ_QHASH_ADDR1)); in i40iw_sc_manage_qhash_table_entry()
1292 LS_64(info->dest_ip[2], I40IW_CQPSQ_QHASH_ADDR2) | in i40iw_sc_manage_qhash_table_entry()
1293 LS_64(info->dest_ip[3], I40IW_CQPSQ_QHASH_ADDR3)); in i40iw_sc_manage_qhash_table_entry()
Di40iw_type.h922 u32 dest_ip[4]; member
/Linux-v5.4/net/ipv4/
Darp.c298 static void arp_send_dst(int type, int ptype, __be32 dest_ip, in arp_send_dst() argument
311 skb = arp_create(type, ptype, dest_ip, dev, src_ip, in arp_send_dst()
320 void arp_send(int type, int ptype, __be32 dest_ip, in arp_send() argument
325 arp_send_dst(type, ptype, dest_ip, dev, src_ip, dest_hw, src_hw, in arp_send()
521 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip, in arp_create() argument
618 memcpy(arp_ptr, &dest_ip, 4); in arp_create()
/Linux-v5.4/tools/testing/selftests/net/forwarding/
Dvxlan_bridge_1d.sh557 local dest_ip=$1; shift
563 -b $next_hop_mac -B $dest_ip \
/Linux-v5.4/drivers/net/bonding/
Dbond_main.c2371 static void bond_arp_send(struct slave *slave, int arp_op, __be32 dest_ip, in bond_arp_send() argument
2380 arp_op, &dest_ip, &src_ip); in bond_arp_send()
2382 skb = arp_create(arp_op, ETH_P_ARP, dest_ip, slave_dev, src_ip, in bond_arp_send()