Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/samples/bpf/
H A 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()
/OK3568_Linux_fs/kernel/include/net/
H A Darp.h68 void arp_send(int type, int ptype, __be32 dest_ip,
76 struct sk_buff *arp_create(int type, int ptype, __be32 dest_ip,
/OK3568_Linux_fs/kernel/net/bridge/
H A 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()
/OK3568_Linux_fs/kernel/drivers/infiniband/hw/i40iw/
H A Di40iw_hw.c623 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 Di40iw_ctrl.c1372 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 Di40iw_type.h929 u32 dest_ip[4]; member
/OK3568_Linux_fs/kernel/net/ipv4/
H A Darp.c300 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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/forwarding/
H A Dvxlan_bridge_1d.sh557 local dest_ip=$1; shift
563 -b $next_hop_mac -B $dest_ip \
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dipsec.c627 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,
/OK3568_Linux_fs/kernel/drivers/net/bonding/
H A Dbond_main.c2690 static void bond_arp_send(struct slave *slave, int arp_op, __be32 dest_ip, in bond_arp_send() argument
2699 arp_op, &dest_ip, &src_ip); in bond_arp_send()
2701 skb = arp_create(arp_op, ETH_P_ARP, dest_ip, slave_dev, src_ip, in bond_arp_send()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/
H A Ddhd_linux.c5288 uint32 dest_ip; in dhd_start_xmit() local
5290 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET))); in dhd_start_xmit()
5291 ucast_convert = dhd->pub.wmf_ucast_upnp && MCAST_ADDR_UPNP_SSDP(dest_ip); in dhd_start_xmit()
5495 uint32 dest_ip; in dhd_mcast_reverse_translation() local
5498 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET))); in dhd_mcast_reverse_translation()
5512 if (IPV4_ISMULTI(dest_ip) && !ETHER_ISMULTI(&eh->ether_dhost)) { in dhd_mcast_reverse_translation()
5513 ETHER_FILL_MCAST_ADDR_FROM_IP(eh->ether_dhost, dest_ip); in dhd_mcast_reverse_translation()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/
H A Ddhd_linux.c4477 uint32 dest_ip; in BCMFASTPATH() local
4479 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET))); in BCMFASTPATH()
4480 ucast_convert = dhd->pub.wmf_ucast_upnp && MCAST_ADDR_UPNP_SSDP(dest_ip); in BCMFASTPATH()
4960 uint32 dest_ip; in dhd_mcast_reverse_translation() local
4963 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET))); in dhd_mcast_reverse_translation()
4977 if (IPV4_ISMULTI(dest_ip) && !ETHER_ISMULTI(&eh->ether_dhost)) { in dhd_mcast_reverse_translation()
4978 ETHER_FILL_MCAST_ADDR_FROM_IP(eh->ether_dhost, dest_ip); in dhd_mcast_reverse_translation()
/OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/
H A Ddhd_linux.c4486 uint32 dest_ip; in BCMFASTPATH() local
4488 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET))); in BCMFASTPATH()
4489 ucast_convert = dhd->pub.wmf_ucast_upnp && MCAST_ADDR_UPNP_SSDP(dest_ip); in BCMFASTPATH()
4974 uint32 dest_ip; in dhd_mcast_reverse_translation() local
4977 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET))); in dhd_mcast_reverse_translation()
4991 if (IPV4_ISMULTI(dest_ip) && !ETHER_ISMULTI(&eh->ether_dhost)) { in dhd_mcast_reverse_translation()
4992 ETHER_FILL_MCAST_ADDR_FROM_IP(eh->ether_dhost, dest_ip); in dhd_mcast_reverse_translation()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/
H A Ddhd_linux.c3939 uint32 dest_ip; local
3942 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET)));
3956 if (IPV4_ISMULTI(dest_ip) && !ETHER_ISMULTI(&eh->ether_dhost)) {
3957 ETHER_FILL_MCAST_ADDR_FROM_IP(eh->ether_dhost, dest_ip);
/OK3568_Linux_fs/external/rkwifibt/drivers/infineon/
H A Ddhd_linux.c3950 uint32 dest_ip; local
3953 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET)));
3967 if (IPV4_ISMULTI(dest_ip) && !ETHER_ISMULTI(&eh->ether_dhost)) {
3968 ETHER_FILL_MCAST_ADDR_FROM_IP(eh->ether_dhost, dest_ip);
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/
H A Ddhd_linux.c3939 uint32 dest_ip; local
3942 dest_ip = ntoh32(*((uint32 *)(iph + IPV4_DEST_IP_OFFSET)));
3956 if (IPV4_ISMULTI(dest_ip) && !ETHER_ISMULTI(&eh->ether_dhost)) {
3957 ETHER_FILL_MCAST_ADDR_FROM_IP(eh->ether_dhost, dest_ip);