Home
last modified time | relevance | path

Searched refs:sockaddr_in (Results 1 – 25 of 236) sorted by relevance

12345678910

/linux/include/linux/sunrpc/
H A Daddr.h27 return ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_get_port()
39 ((struct sockaddr_in *)sap)->sin_port = htons(port); in rpc_set_port()
53 const struct sockaddr_in *sin1 = (const struct sockaddr_in *)sap1; in rpc_cmp_addr4()
54 const struct sockaddr_in *sin2 = (const struct sockaddr_in *)sap2; in rpc_cmp_addr4()
62 const struct sockaddr_in *ssin = (struct sockaddr_in *) src; in __rpc_copy_addr4()
63 struct sockaddr_in *dsin = (struct sockaddr_in *) dst; in __rpc_copy_addr4()
H A Dsvc_xprt.h186 const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; in svc_addr_port()
203 return sizeof(struct sockaddr_in); in svc_addr_len()
223 const struct sockaddr_in *sin = (const struct sockaddr_in *)addr; in __svc_print_addr()
/linux/tools/testing/selftests/bpf/progs/
H A Dtest_probe_user.c8 static struct sockaddr_in old;
10 static int handle_sys_connect_common(struct sockaddr_in *uservaddr) in handle_sys_connect_common()
12 struct sockaddr_in new; in handle_sys_connect_common()
22 int BPF_KSYSCALL(handle_sys_connect, int fd, struct sockaddr_in *uservaddr, in BPF_KSYSCALL()
37 struct sockaddr_in *uservaddr; in BPF_KSYSCALL()
/linux/net/sunrpc/
H A Daddr.c115 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_ntop4()
145 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_pton4()
148 if (buflen > INET_ADDRSTRLEN || salen < sizeof(struct sockaddr_in)) in rpc_pton4()
151 memset(sap, 0, sizeof(struct sockaddr_in)); in rpc_pton4()
157 return sizeof(struct sockaddr_in); in rpc_pton4()
275 port = ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_sockaddr2uaddr()
345 ((struct sockaddr_in *)sap)->sin_port = htons(port); in rpc_uaddr2sockaddr()
346 return sizeof(struct sockaddr_in); in rpc_uaddr2sockaddr()
/linux/arch/um/drivers/
H A Dumcast_user.c22 static struct sockaddr_in *new_addr(char *addr, unsigned short port) in new_addr()
24 struct sockaddr_in *sin; in new_addr()
26 sin = uml_kmalloc(sizeof(struct sockaddr_in), UM_GFP_KERNEL); in new_addr()
67 struct sockaddr_in *lsin = pri->listen_addr; in umcast_open()
68 struct sockaddr_in *rsin = pri->remote_addr; in umcast_open()
154 struct sockaddr_in *lsin = pri->listen_addr; in umcast_close()
170 struct sockaddr_in *data_addr = pri->remote_addr; in umcast_user_write()
/linux/tools/testing/selftests/net/netfilter/
H A Dconnect_close.c40 static void do_connect(const struct sockaddr_in *dst) in do_connect()
51 static void do_accept(const struct sockaddr_in *src) in do_accept()
74 struct sockaddr_in src = { in accept_loop()
91 struct sockaddr_in dst = { in connect_loop()
H A Dconntrack_reverse_clash.c58 struct sockaddr_in sa1 = { in main()
61 struct sockaddr_in sa2 = { in main()
90 struct sockaddr_in peer; in main()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dprobe_user.c18 struct sockaddr_in *in = (struct sockaddr_in *)&curr; in serial_test_probe_user()
70 in = (struct sockaddr_in *)&tmp; in serial_test_probe_user()
78 in = (struct sockaddr_in *)&curr; in serial_test_probe_user()
H A Dsk_assign.c87 port = ((struct sockaddr_in *)&ss)->sin_port; in get_port()
172 struct sockaddr_in *addr4; in prepare_addr()
177 addr4 = (struct sockaddr_in *)addr; in prepare_addr()
222 struct sockaddr_in addr4; in test_sk_assign()
/linux/security/landlock/
H A Dnet.c77 if (addrlen < sizeof(struct sockaddr_in)) in current_check_access_socket()
79 port = ((struct sockaddr_in *)address)->sin_port; in current_check_access_socket()
123 const struct sockaddr_in *const sockaddr = in current_check_access_socket()
124 (struct sockaddr_in *)address; in current_check_access_socket()
/linux/tools/testing/selftests/net/
H A Dfin_ack_lat.c31 struct sockaddr_in addr, laddr; in client()
86 static void server(int sock, struct sockaddr_in address) in server()
114 struct sockaddr_in address; in main()
115 struct sockaddr_in laddr; in main()
H A Dreuseport_bpf_cpu.c37 struct sockaddr_in *addr4; in build_rcv_group()
44 addr4 = (struct sockaddr_in *)&addr; in build_rcv_group()
97 struct sockaddr_in *saddr4, *daddr4; in send_from_cpu()
104 saddr4 = (struct sockaddr_in *)&saddr; in send_from_cpu()
109 daddr4 = (struct sockaddr_in *)&daddr; in send_from_cpu()
H A Dreuseport_bpf_numa.c33 struct sockaddr_in *addr4; in build_rcv_group()
40 addr4 = (struct sockaddr_in *)&addr; in build_rcv_group()
110 struct sockaddr_in *saddr4, *daddr4; in send_from_node()
116 saddr4 = (struct sockaddr_in *)&saddr; in send_from_node()
121 daddr4 = (struct sockaddr_in *)&daddr; in send_from_node()
H A Dtimestamping.c156 struct sockaddr_in *from_addr = (struct sockaddr_in *)msg->msg_name; in printpacket()
283 struct sockaddr_in from_addr; in recvpacket()
330 struct sockaddr_in addr; in main()
422 sizeof(struct sockaddr_in)) < 0) in main()
433 ((struct sockaddr_in *)&device.ifr_addr)->sin_addr.s_addr; in main()
H A Dtcp_inq.c39 struct sockaddr_in *addr4 = (void *) sockaddr; in setup_loopback_addr()
62 struct sockaddr_in addr; in start_server()
112 addr_len = sizeof(struct sockaddr_in); in main()
/linux/fs/smb/client/
H A Dcifs_swn.c418 return (memcmp(&((const struct sockaddr_in *)addr1)->sin_addr, in cifs_sockaddr_equal()
419 &((const struct sockaddr_in *)addr2)->sin_addr, in cifs_sockaddr_equal()
439 struct sockaddr_in *ipv4 = (struct sockaddr_in *)old; in cifs_swn_store_swn_addr()
449 struct sockaddr_in *ipv4 = (struct sockaddr_in *)new; in cifs_swn_store_swn_addr()
511 struct sockaddr_in *ipv4 = (struct sockaddr_in *)addr; in cifs_swn_client_move()
629 struct sockaddr_in *sa; in cifs_swn_dump()
643 sa = (struct sockaddr_in *) &swnreg->tcon->ses->server->dstaddr; in cifs_swn_dump()
/linux/drivers/infiniband/hw/qedr/
H A Dqedr_iw_cm.c46 struct sockaddr_in *laddr = (struct sockaddr_in *)&event->local_addr; in qedr_fill_sockaddr4()
47 struct sockaddr_in *raddr = (struct sockaddr_in *)&event->remote_addr; in qedr_fill_sockaddr4()
441 struct sockaddr_in *src_in, in qedr_addr4_resolve()
442 struct sockaddr_in *dst_in, u8 *dst_mac) in qedr_addr4_resolve()
540 struct sockaddr_in *laddr; in qedr_iw_connect()
541 struct sockaddr_in *raddr; in qedr_iw_connect()
547 laddr = (struct sockaddr_in *)&cm_id->m_local_addr; in qedr_iw_connect()
548 raddr = (struct sockaddr_in *)&cm_id->m_remote_addr; in qedr_iw_connect()
553 ntohs(((struct sockaddr_in *)&cm_id->remote_addr)->sin_port), in qedr_iw_connect()
664 struct sockaddr_in *laddr; in qedr_iw_create_listen()
[all …]
/linux/net/rds/
H A Daf_rds.c119 struct sockaddr_in *sin; in rds_getname()
128 sin = (struct sockaddr_in *)uaddr; in rds_getname()
153 sin = (struct sockaddr_in *)uaddr; in rds_getname()
169 sin = (struct sockaddr_in *)uaddr; in rds_getname()
175 sin = (struct sockaddr_in *)uaddr; in rds_getname()
296 struct sockaddr_in sin; in rds_cancel_sent_to()
305 if (len < sizeof(struct sockaddr_in)) { in rds_cancel_sent_to()
311 sizeof(struct sockaddr_in))) { in rds_cancel_sent_to()
540 struct sockaddr_in *sin; in rds_connect()
551 sin = (struct sockaddr_in *)uaddr; in rds_connect()
[all …]
/linux/drivers/infiniband/hw/mlx5/
H A Dmacsec.c16 struct sockaddr_in sockaddr_in; member
91 memcpy(&roce_gids->addr.sockaddr_in, addr, sizeof(roce_gids->addr.sockaddr_in)); in mlx5_macsec_save_roce_gid()
227 struct sockaddr_in sockaddr_in; in mlx5r_add_gid_macsec_operations() member
/linux/drivers/infiniband/core/
H A Daddr.c199 return sizeof(struct sockaddr_in); in rdma_addr_size()
254 ((const struct sockaddr_in *)src_in)->sin_addr.s_addr, in rdma_find_ndev_for_src_ip_rcu()
360 const struct sockaddr_in *dst_in4 = in fetch_ha()
361 (const struct sockaddr_in *)dst_in; in fetch_ha()
383 struct sockaddr_in *src_in = (struct sockaddr_in *)src_sock; in addr4_resolve()
384 const struct sockaddr_in *dst_in = in addr4_resolve()
385 (const struct sockaddr_in *)dst_sock; in addr4_resolve()
720 struct sockaddr_in _sockaddr_in; in roce_resolve_route_from_path()
815 struct sockaddr_in _sockaddr_in; in rdma_addr_find_l2_eth_by_grh()
H A Diwpm_util.c413 struct sockaddr_in *a4_sockaddr = in iwpm_compare_sockaddr()
414 (struct sockaddr_in *)a_sockaddr; in iwpm_compare_sockaddr()
415 struct sockaddr_in *b4_sockaddr = in iwpm_compare_sockaddr()
416 (struct sockaddr_in *)b_sockaddr; in iwpm_compare_sockaddr()
492 struct sockaddr_in *sockaddr_v4; in iwpm_print_sockaddr()
496 sockaddr_v4 = (struct sockaddr_in *)sockaddr; in iwpm_print_sockaddr()
521 static u32 iwpm_ipv4_jhash(struct sockaddr_in *ipv4_sockaddr) in iwpm_ipv4_jhash()
534 a_hash = iwpm_ipv4_jhash((struct sockaddr_in *) a_sockaddr); in get_hash_bucket()
535 b_hash = iwpm_ipv4_jhash((struct sockaddr_in *) b_sockaddr); in get_hash_bucket()
/linux/drivers/infiniband/hw/usnic/
H A Dusnic_transport.c177 struct sockaddr_in sock_addr; in usnic_transport_sock_get_addr()
191 *port = ntohs(((struct sockaddr_in *)&sock_addr)->sin_port); in usnic_transport_sock_get_addr()
193 *addr = ntohl(((struct sockaddr_in *) in usnic_transport_sock_get_addr()
/linux/include/uapi/linux/
H A Dif_pppol2tp.h32 struct sockaddr_in addr; /* IP address and port to send to */
60 struct sockaddr_in addr; /* IP address and port to send to */
/linux/drivers/infiniband/hw/cxgb4/
H A Ddevice.c199 static struct sockaddr_in zero_sin = {
208 struct sockaddr_in **lsin, in set_ep_sin_addrs()
209 struct sockaddr_in **rsin, in set_ep_sin_addrs()
210 struct sockaddr_in **m_lsin, in set_ep_sin_addrs()
211 struct sockaddr_in **m_rsin) in set_ep_sin_addrs()
215 *m_lsin = (struct sockaddr_in *)&ep->com.local_addr; in set_ep_sin_addrs()
216 *m_rsin = (struct sockaddr_in *)&ep->com.remote_addr; in set_ep_sin_addrs()
218 *lsin = (struct sockaddr_in *)&id->local_addr; in set_ep_sin_addrs()
219 *rsin = (struct sockaddr_in *)&id->remote_addr; in set_ep_sin_addrs()
261 struct sockaddr_in *lsin; in dump_qp()
[all …]
/linux/tools/testing/selftests/net/tcp_ao/
H A Dicmps-accept.c166 struct sockaddr_in *src, struct sockaddr_in *dst) in set_ip4hdr()
180 struct sockaddr_in *src, struct sockaddr_in *dst) in icmp_interfere4()
364 struct sockaddr_in *saddr4 = src; in icmp_interfere()
365 struct sockaddr_in *daddr4 = dst; in icmp_interfere()

12345678910