/linux-6.3-rc2/include/linux/sunrpc/ |
A D | addr.h | 27 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()
|
A D | svc_xprt.h | 174 const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; in svc_addr_port() 191 return sizeof(struct sockaddr_in); in svc_addr_len() 211 const struct sockaddr_in *sin = (const struct sockaddr_in *)addr; in __svc_print_addr()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | test_probe_user.c | 8 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-6.3-rc2/samples/bpf/ |
A D | test_probe_write_user.bpf.c | 16 __type(key, struct sockaddr_in); 17 __type(value, struct sockaddr_in); 30 int BPF_KSYSCALL(bpf_prog1, int fd, struct sockaddr_in *uservaddr, in BPF_KSYSCALL() 33 struct sockaddr_in new_addr, orig_addr = {}; in BPF_KSYSCALL() 34 struct sockaddr_in *mapped_addr; in BPF_KSYSCALL()
|
A D | test_probe_write_user_user.c | 13 struct sockaddr_in *serv_addr_in, *mapped_addr_in, *tmp_addr_in; in main() 23 serv_addr_in = (struct sockaddr_in *)&serv_addr; in main() 24 mapped_addr_in = (struct sockaddr_in *)&mapped_addr; in main() 25 tmp_addr_in = (struct sockaddr_in *)&tmp_addr; in main() 102 assert(memcmp(&serv_addr, &tmp_addr, sizeof(struct sockaddr_in)) == 0); in main()
|
/linux-6.3-rc2/net/sunrpc/ |
A D | addr.c | 115 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-6.3-rc2/arch/um/drivers/ |
A D | umcast_user.c | 22 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-6.3-rc2/tools/testing/selftests/netfilter/ |
A D | connect_close.c | 40 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()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | probe_user.c | 18 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()
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | fin_ack_lat.c | 31 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()
|
A D | reuseport_bpf_cpu.c | 37 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()
|
A D | reuseport_bpf_numa.c | 33 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()
|
A D | timestamping.c | 156 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()
|
A D | tcp_inq.c | 39 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-6.3-rc2/include/linux/lockd/ |
A D | lockd.h | 102 static inline struct sockaddr_in *nlm_addr_in(const struct nlm_host *host) in nlm_addr_in() 104 return (struct sockaddr_in *)&host->h_addr; in nlm_addr_in() 112 static inline struct sockaddr_in *nlm_srcaddr_in(const struct nlm_host *host) in nlm_srcaddr_in() 114 return (struct sockaddr_in *)&host->h_srcaddr; in nlm_srcaddr_in() 320 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in __nlm_privileged_request4()
|
/linux-6.3-rc2/fs/cifs/ |
A D | cifs_swn.c | 418 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-6.3-rc2/drivers/infiniband/hw/qedr/ |
A D | qedr_iw_cm.c | 46 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() 539 struct sockaddr_in *laddr; in qedr_iw_connect() 540 struct sockaddr_in *raddr; in qedr_iw_connect() 546 laddr = (struct sockaddr_in *)&cm_id->m_local_addr; in qedr_iw_connect() 547 raddr = (struct sockaddr_in *)&cm_id->m_remote_addr; in qedr_iw_connect() 552 ntohs(((struct sockaddr_in *)&cm_id->remote_addr)->sin_port), in qedr_iw_connect() 663 struct sockaddr_in *laddr; in qedr_iw_create_listen() [all …]
|
/linux-6.3-rc2/net/rds/ |
A D | af_rds.c | 119 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-6.3-rc2/drivers/infiniband/core/ |
A D | iwpm_util.c | 413 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()
|
A D | addr.c | 199 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() 366 const struct sockaddr_in *dst_in4 = in fetch_ha() 367 (const struct sockaddr_in *)dst_in; in fetch_ha() 389 struct sockaddr_in *src_in = (struct sockaddr_in *)src_sock; in addr4_resolve() 390 const struct sockaddr_in *dst_in = in addr4_resolve() 391 (const struct sockaddr_in *)dst_sock; in addr4_resolve() 726 struct sockaddr_in _sockaddr_in; in roce_resolve_route_from_path() 821 struct sockaddr_in _sockaddr_in; in rdma_addr_find_l2_eth_by_grh()
|
/linux-6.3-rc2/drivers/infiniband/hw/usnic/ |
A D | usnic_transport.c | 177 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-6.3-rc2/include/uapi/linux/ |
A D | if_pppol2tp.h | 32 struct sockaddr_in addr; /* IP address and port to send to */ 60 struct sockaddr_in addr; /* IP address and port to send to */
|
/linux-6.3-rc2/tools/testing/selftests/bpf/ |
A D | network_helpers.c | 201 struct sockaddr_in *addr_in; in fastopen_connect() 209 addr_in = (struct sockaddr_in *)&addr; in fastopen_connect() 265 struct sockaddr_in *addr_in; in connect_to_fd_opts() 289 addr_in = (struct sockaddr_in *)&addr; in connect_to_fd_opts() 346 struct sockaddr_in *sin = (void *)addr; in make_sockaddr()
|
/linux-6.3-rc2/drivers/isdn/mISDN/ |
A D | l1oip.h | 78 struct sockaddr_in sin_local; /* local socket name */ 79 struct sockaddr_in sin_remote; /* remote socket name */
|
/linux-6.3-rc2/drivers/infiniband/hw/cxgb4/ |
A D | device.c | 208 struct sockaddr_in **lsin, in set_ep_sin_addrs() 261 struct sockaddr_in *lsin; in dump_qp() 262 struct sockaddr_in *rsin; in dump_qp() 263 struct sockaddr_in *m_lsin; in dump_qp() 264 struct sockaddr_in *m_rsin; in dump_qp() 568 struct sockaddr_in *lsin; in dump_ep() 569 struct sockaddr_in *rsin; in dump_ep() 570 struct sockaddr_in *m_lsin; in dump_ep() 571 struct sockaddr_in *m_rsin; in dump_ep() 626 struct sockaddr_in *lsin = (struct sockaddr_in *) in dump_listen_ep() [all …]
|