Home
last modified time | relevance | path

Searched refs:local_ip (Results 1 – 25 of 45) sorted by relevance

12

/linux-5.19.10/tools/testing/selftests/bpf/progs/
Dtest_tunnel_kern.c295 __u32 *local_ip = NULL; in vxlan_set_tunnel_dst() local
297 local_ip = bpf_map_lookup_elem(&local_ip_map, &index); in vxlan_set_tunnel_dst()
298 if (!local_ip) { in vxlan_set_tunnel_dst()
305 key.remote_ipv4 = *local_ip; in vxlan_set_tunnel_dst()
334 __u32 *local_ip = NULL; in vxlan_set_tunnel_src() local
336 local_ip = bpf_map_lookup_elem(&local_ip_map, &index); in vxlan_set_tunnel_src()
337 if (!local_ip) { in vxlan_set_tunnel_src()
343 key.local_ipv4 = *local_ip; in vxlan_set_tunnel_src()
373 __u32 *local_ip = NULL; in vxlan_get_tunnel_src() local
375 local_ip = bpf_map_lookup_elem(&local_ip_map, &index); in vxlan_get_tunnel_src()
[all …]
/linux-5.19.10/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_cm.c43 int *iptype, __u8 *local_ip, __u8 *peer_ip, in cxgb_get_4tuple() argument
63 memcpy(local_ip, &ip->daddr, 4); in cxgb_get_4tuple()
70 memcpy(local_ip, ip6->daddr.s6_addr, 16); in cxgb_get_4tuple()
94 __be32 local_ip, __be32 peer_ip, __be16 local_port, in cxgb_find_route() argument
101 rt = ip_route_output_ports(&init_net, &fl4, NULL, peer_ip, local_ip, in cxgb_find_route()
123 __u8 *local_ip, __u8 *peer_ip, __be16 local_port, in cxgb_find_route6() argument
133 memcpy(&fl6.saddr, local_ip, 16); in cxgb_find_route6()
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
Dtest_tunnel.c253 uint local_ip; in test_vxlan_tunnel() local
299 local_ip = IP4_ADDR2_HEX_VETH1; in test_vxlan_tunnel()
300 err = bpf_map_update_elem(local_ip_map_fd, &key, &local_ip, BPF_ANY); in test_vxlan_tunnel()
326 uint local_ip; in test_ip6vxlan_tunnel() local
372 local_ip = IP6_ADDR2_HEX_VETH1; in test_ip6vxlan_tunnel()
373 err = bpf_map_update_elem(local_ip_map_fd, &key, &local_ip, BPF_ANY); in test_ip6vxlan_tunnel()
Dsk_lookup.c254 static int fill_sk_lookup_ctx(struct bpf_sk_lookup *ctx, const char *local_ip, __u16 local_port, in fill_sk_lookup_ctx() argument
264 if (is_ipv6(local_ip)) { in fill_sk_lookup_ctx()
274 err = inet_pton(ctx->family, local_ip, local); in fill_sk_lookup_ctx()
1084 const char *remote_ip, const char *local_ip) in run_sk_assign() argument
1098 if (fill_sk_lookup_ctx(&ctx, local_ip, EXT_PORT, remote_ip, INT_PORT)) in run_sk_assign()
1104 server_fds[i] = make_server(SOCK_STREAM, local_ip, 0, NULL); in run_sk_assign()
/linux-5.19.10/net/core/
Dnetpoll.c421 udph->check = csum_ipv6_magic(&np->local_ip.in6, in netpoll_send_udp()
441 ip6h->saddr = np->local_ip.in6; in netpoll_send_udp()
449 udph->check = csum_tcpudp_magic(np->local_ip.ip, in netpoll_send_udp()
469 put_unaligned(np->local_ip.ip, &(iph->saddr)); in netpoll_send_udp()
491 np_info(np, "local IPv6 address %pI6c\n", &np->local_ip.in6); in netpoll_print_options()
493 np_info(np, "local IPv4 address %pI4\n", &np->local_ip.ip); in netpoll_print_options()
545 ipv6 = netpoll_parse_ip_addr(cur, &np->local_ip); in netpoll_parse_options()
719 if (!np->local_ip.ip) { in netpoll_setup()
736 np->local_ip.ip = ifa->ifa_local; in netpoll_setup()
737 np_info(np, "local IP %pI4\n", &np->local_ip.ip); in netpoll_setup()
[all …]
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb/
Dcpl5_cmd.h198 u32 local_ip; member
210 u32 local_ip; member
220 u32 local_ip; member
233 u32 local_ip; member
264 u32 local_ip; member
276 u32 local_ip; member
287 u32 local_ip; member
/linux-5.19.10/arch/m68k/emu/
Dnfeth.c189 char mac[ETH_ALEN], host_ip[32], local_ip[32]; in nfeth_probe() local
217 virt_to_phys(local_ip), sizeof(local_ip)); in nfeth_probe()
220 local_ip, mac); in nfeth_probe()
/linux-5.19.10/drivers/infiniband/hw/qedr/
Dqedr_iw_cm.c55 laddr->sin_addr.s_addr = htonl(cm_info->local_ip[0]); in qedr_fill_sockaddr4()
76 htonl(cm_info->local_ip[i]); in qedr_fill_sockaddr6()
583 memset(cm_info->local_ip, 0, sizeof(cm_info->local_ip)); in qedr_iw_connect()
591 cm_info->local_ip[0] = ntohl(laddr->sin_addr.s_addr); in qedr_iw_connect()
594 cm_info->vlan = qedr_iw_get_vlan_ipv4(dev, cm_info->local_ip); in qedr_iw_connect()
608 cm_info->local_ip[i] = in qedr_iw_connect()
618 cm_info->vlan = qedr_iw_get_vlan_ipv6(cm_info->local_ip); in qedr_iw_connect()
/linux-5.19.10/include/linux/qed/
Dtcp_common.h80 __le32 local_ip[4]; member
146 __le32 local_ip[4]; member
/linux-5.19.10/drivers/net/
Dnetconsole.c277 return snprintf(buf, PAGE_SIZE, "%pI6c\n", &nt->np.local_ip.in6); in local_ip_show()
279 return snprintf(buf, PAGE_SIZE, "%pI4\n", &nt->np.local_ip); in local_ip_show()
488 if (in6_pton(buf, count, nt->np.local_ip.in6.s6_addr, -1, &end) > 0) { in local_ip_store()
498 nt->np.local_ip.ip = in_aton(buf); in local_ip_store()
577 CONFIGFS_ATTR(, local_ip);
Damt.c633 amt->discovery_ip, amt->local_ip, in amt_send_discovery()
672 udph->check = csum_tcpudp_magic(amt->local_ip, amt->discovery_ip, in amt_send_discovery()
684 iph->saddr = amt->local_ip; in amt_send_discovery()
722 amt->remote_ip, amt->local_ip, in amt_send_request()
763 udph->check = csum_tcpudp_magic(amt->local_ip, amt->remote_ip, in amt_send_request()
775 iph->saddr = amt->local_ip; in amt_send_request()
1020 fl4.saddr = amt->local_ip; in amt_send_membership_update()
1079 fl4.saddr = amt->local_ip; in amt_send_multicast_data()
1133 fl4.saddr = amt->local_ip; in amt_send_membership_query()
2570 daddr, amt->local_ip, in amt_send_advertisement()
[all …]
/linux-5.19.10/drivers/net/ethernet/chelsio/inline_crypto/chtls/
Dchtls_cm.h166 __be32 local_ip, __be32 peer_ip) in chtls_set_req_addr() argument
168 inet_rsk(oreq)->ir_loc_addr = local_ip; in chtls_set_req_addr()
/linux-5.19.10/drivers/net/ethernet/qlogic/qed/
Dqed_nvmetcp.c332 p_tcp->local_ip[i] = cpu_to_le32(p_conn->local_ip[i]); in qed_sp_nvmetcp_conn_offload()
336 p_tcp->local_ip[0] = cpu_to_le32(p_conn->local_ip[0]); in qed_sp_nvmetcp_conn_offload()
688 memcpy(con->local_ip, conn_info->src.ip, sizeof(con->local_ip)); in qed_nvmetcp_offload_conn()
Dqed_nvmetcp.h61 u32 local_ip[4]; member
Dqed_iscsi.c70 u32 local_ip[4]; member
351 dval = p_conn->local_ip[i]; in qed_sp_iscsi_conn_offload()
352 p_tcp->local_ip[i] = cpu_to_le32(dval); in qed_sp_iscsi_conn_offload()
423 dval = p_conn->local_ip[i]; in qed_sp_iscsi_conn_offload()
424 p_tcp2->local_ip[i] = cpu_to_le32(dval); in qed_sp_iscsi_conn_offload()
1223 memcpy(con->local_ip, conn_info->src.ip, sizeof(con->local_ip)); in qed_iscsi_offload_conn()
Dqed_iwarp.c590 p_tcp_ramrod->tcp.local_ip, in qed_iwarp_print_tcp_ramrod()
598 p_tcp_ramrod->tcp.local_ip, in qed_iwarp_print_tcp_ramrod()
697 tcp->local_ip[i] = cpu_to_le32(ep->cm_info.local_ip[i]); in qed_iwarp_tcp_offload()
1563 cm_info->local_ip, cm_info->local_port, in qed_iwarp_print_cm_info()
1569 cm_info->local_ip, cm_info->local_port, in qed_iwarp_print_cm_info()
1609 !memcmp(&ep->cm_info.local_ip, cm_info->local_ip, in qed_iwarp_ep_exists()
1610 sizeof(cm_info->local_ip)) && in qed_iwarp_ep_exists()
1648 cm_info->local_ip, in qed_iwarp_get_listener()
1649 sizeof(cm_info->local_ip)) && in qed_iwarp_get_listener()
1725 cm_info->local_ip[0] = ntohl(iph->daddr); in qed_iwarp_parse_rx_pkt()
[all …]
/linux-5.19.10/tools/testing/selftests/net/forwarding/
Dmirror_gre_changes.sh161 local local_ip=$1; shift
172 tunnel_create $tundev $type $local_ip $remote_ip \
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb3/
Dt3_cpl.h483 __be32 local_ip; member
495 __be32 local_ip; member
505 __be32 local_ip; member
542 __be32 local_ip; member
580 __be32 local_ip; member
621 __be32 local_ip; member
632 __be32 local_ip; member
/linux-5.19.10/include/linux/
Dnetpoll.h31 union inet_addr local_ip, remote_ip; member
/linux-5.19.10/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c1229 __u8 local_ip[16], peer_ip[16]; in cxgbit_pass_accept_req() local
1257 cxgb_get_4tuple(req, cdev->lldi.adapter_type, &iptype, local_ip, in cxgbit_pass_accept_req()
1265 local_ip, peer_ip, ntohs(local_port), in cxgbit_pass_accept_req()
1268 *(__be32 *)local_ip, in cxgbit_pass_accept_req()
1276 local_ip, peer_ip, ntohs(local_port), in cxgbit_pass_accept_req()
1279 local_ip, peer_ip, in cxgbit_pass_accept_req()
1333 sin->sin_addr.s_addr = *(__be32 *)local_ip; in cxgbit_pass_accept_req()
1345 memcpy(sin6->sin6_addr.s6_addr, local_ip, 16); in cxgbit_pass_accept_req()
/linux-5.19.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/
Dhw_atl2_utils.h161 u32 local_ip; member
182 u32 local_ip[4]; member
/linux-5.19.10/net/l2tp/
Dl2tp_core.h137 struct in_addr local_ip; member
/linux-5.19.10/net/ipv4/
Dudp_tunnel_core.c28 udp_addr.sin_addr = cfg->local_ip; in udp_sock_create4()
/linux-5.19.10/include/net/
Damt.h347 __be32 local_ip; member
Dudp_tunnel.h18 struct in_addr local_ip; member

12