/openbmc/linux/include/linux/sunrpc/ |
H 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()
|
H A D | svc_xprt.h | 181 const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; in svc_addr_port() 198 return sizeof(struct sockaddr_in); in svc_addr_len() 218 const struct sockaddr_in *sin = (const struct sockaddr_in *)addr; in __svc_print_addr()
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H 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()
|
/openbmc/linux/samples/bpf/ |
H 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()
|
H 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()
|
/openbmc/openbmc/poky/meta/recipes-multimedia/gstreamer/gst-devtools/ |
H A D | 0001-connect-has-a-different-signature-on-musl.patch | 9 typcasted to struct sockaddr_in* type inside the function before use 23 @@ -100,10 +100,15 @@ socket_interposer_set_callback (struct sockaddr_in *addrin, 27 -connect (int socket, const struct sockaddr_in *addrin, socklen_t address_len) 31 +connect (int socket, const struct sockaddr_in *addr, socklen_t address_len) 36 + struct sockaddr_in* addrin = (struct sockaddr_in*)addr; 37 typedef ssize_t (*real_connect_fn) (int, const struct sockaddr_in *,
|
/openbmc/linux/net/sunrpc/ |
H 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()
|
/openbmc/linux/arch/um/drivers/ |
H 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()
|
/openbmc/openbmc/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/ |
H A D | rfc931.diff | 17 +struct sockaddr_in *rmt_sin; 18 +struct sockaddr_in *our_sin; 37 +extern void rfc931(struct sockaddr_in *, struct sockaddr_in *, char *);
|
H A D | 10_usagi-ipv6.patch | 393 struct sockaddr_in *rmt_sin; 394 struct sockaddr_in *our_sin; 405 struct sockaddr_in rmt_query_sin; 406 struct sockaddr_in our_query_sin; 422 + alen = sizeof(struct sockaddr_in); 594 struct sockaddr_in sin; 742 + struct sockaddr_in sin4; 912 struct sockaddr_in sin; 1044 struct sockaddr_in server_sin; 1045 struct sockaddr_in client_sin; [all …]
|
H A D | socklen_t.patch | 36 static struct sockaddr_in client; 37 static struct sockaddr_in server; 49 struct sockaddr_in sin;
|
/openbmc/linux/tools/testing/selftests/netfilter/ |
H 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()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H 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()
|
/openbmc/phosphor-net-ipmid/ |
H A D | socket_channel.hpp | 73 if (sockAddrSize == sizeof(sockaddr_in)) in getRemoteAddress() 76 const sockaddr_in* sa = in getRemoteAddress() 77 reinterpret_cast<const sockaddr_in*>(&remoteSockAddr); in getRemoteAddress() 116 if (sockAddrSize == sizeof(sockaddr_in)) in getPort() 118 return ntohs(reinterpret_cast<const sockaddr_in*>(&remoteSockAddr) in getPort()
|
/openbmc/linux/tools/testing/selftests/net/ |
H 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()
|
H 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()
|
H 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()
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H 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() 298 addr_in = (struct sockaddr_in *)&addr; in connect_to_fd_opts() 356 struct sockaddr_in *sin = (void *)addr; in make_sockaddr() 457 struct sockaddr_in *sin = (struct sockaddr_in *)&addr; in get_socket_local_port()
|
/openbmc/linux/fs/smb/client/ |
H 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()
|
/openbmc/linux/drivers/infiniband/hw/qedr/ |
H 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 …]
|
/openbmc/linux/include/uapi/linux/ |
H 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 */
|
/openbmc/openbmc/meta-security/recipes-mac/smack/udp-smack-test/ |
H A D | udp_client.c | 30 struct sockaddr_in server_addr; in main() 64 sizeof(struct sockaddr_in)); in main()
|
/openbmc/linux/drivers/infiniband/hw/usnic/ |
H 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()
|
/openbmc/linux/drivers/infiniband/hw/mlx5/ |
H A D | macsec.c | 16 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
|
/openbmc/linux/net/rds/ |
H 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 …]
|