/glibc-2.36/resolv/ |
D | res_isourserver.c | 97 struct sockaddr_in *in4p = (struct sockaddr_in *) inp; in res_ourserver_p() 103 const struct sockaddr_in *srv = in res_ourserver_p() 104 (struct sockaddr_in *) __res_get_nsaddr (statp, ns); in res_ourserver_p() 131 res_isourserver (const struct sockaddr_in *inp) in res_isourserver()
|
D | resolv_conf.c | 204 same_address_v4 (const struct sockaddr_in *left, in same_address_v4() 205 const struct sockaddr_in *right) in same_address_v4() 231 return same_address_v4 ((const struct sockaddr_in *) left, in same_address() 232 (const struct sockaddr_in *) right); in same_address() 368 _Static_assert (__alignof__ (struct sockaddr_in) in __resolv_conf_allocate() 371 <= __alignof__ (struct sockaddr_in), "alignment"); in __resolv_conf_allocate() 377 address_space += sizeof (struct sockaddr_in); in __resolv_conf_allocate() 429 struct sockaddr_in *sa = alloc_buffer_alloc in __resolv_conf_allocate() 430 (&buffer, struct sockaddr_in); in __resolv_conf_allocate() 431 *sa = *(struct sockaddr_in *) init->nameserver_list[i]; in __resolv_conf_allocate() [all …]
|
D | res_send.c | 329 sizeof (struct sockaddr_in)), in __res_context_send() 332 - sizeof (struct sockaddr_in)); in __res_context_send() 623 ? sizeof (struct sockaddr_in) in send_vc() 818 slen = sizeof (struct sockaddr_in); in reopen() 1304 return ((((struct sockaddr_in *)a1)->sin_port == in sock_eq() 1305 ((struct sockaddr_in *)a2)->sin_port) && in sock_eq() 1306 (((struct sockaddr_in *)a1)->sin_addr.s_addr == in sock_eq() 1307 ((struct sockaddr_in *)a2)->sin_addr.s_addr)); in sock_eq() 1318 return ((a1->sin6_port == ((struct sockaddr_in *)a2)->sin_port) && in sock_eq() 1321 ((struct sockaddr_in *)a2)->sin_addr.s_addr)); in sock_eq()
|
/glibc-2.36/socket/ |
D | tst-accept4.c | 49 struct sockaddr_in address; 54 client_connect (const struct sockaddr_in *server_address) in client_connect() 73 check_same_address (const struct sockaddr_in *left, in check_same_address() 74 const struct sockaddr_in *right) in check_same_address() 89 struct sockaddr_in server_address = in do_test() 114 struct sockaddr_in client_address; in do_test()
|
/glibc-2.36/inet/ |
D | tst-sockaddr.c | 93 check (sizeof (struct sockaddr_storage) >= sizeof (struct sockaddr_in), in do_test() 99 struct sockaddr_in *sinp = (struct sockaddr_in *)&addr; in do_test() 114 const struct sockaddr_in *sinp = (const struct sockaddr_in *)p; in do_test()
|
D | getnameinfo.c | 258 const struct sockaddr_in *sinp = (const struct sockaddr_in *) sa; in gni_host_inet_name() 366 const struct sockaddr_in *sinp = (const struct sockaddr_in *) sa; in gni_host_inet_numeric() 440 (offsetof (struct sockaddr_in, sin_port) in gni_serv_inet() 442 && sizeof (((struct sockaddr_in) {}).sin_port) == sizeof (in_port_t) in gni_serv_inet() 445 const struct sockaddr_in *sinp = (const struct sockaddr_in *) sa; in gni_serv_inet() 521 if (addrlen < sizeof (struct sockaddr_in)) in getnameinfo()
|
D | bindresvport.c | 49 bindresvport (int sd, struct sockaddr_in *sin) in bindresvport() 52 struct sockaddr_in myaddr; in bindresvport() 61 if (sin == (struct sockaddr_in *) 0) in bindresvport() 92 res = __bind (sd, sin, sizeof (struct sockaddr_in)); in bindresvport()
|
/glibc-2.36/sunrpc/rpc/ |
D | pmap_clnt.h | 45 typedef bool_t (*resultproc_t) (caddr_t __resp, struct sockaddr_in *__raddr); 73 extern struct pmaplist *pmap_getmaps (struct sockaddr_in *__address) __THROW; 74 extern enum clnt_stat pmap_rmtcall (struct sockaddr_in *__addr, 88 extern u_short pmap_getport (struct sockaddr_in *__address,
|
D | clnt.h | 307 extern CLIENT *clnttcp_create (struct sockaddr_in *__raddr, u_long __prog, 332 extern CLIENT *clntudp_create (struct sockaddr_in *__raddr, u_long __program, 335 extern CLIENT *clntudp_bufcreate (struct sockaddr_in *__raddr, 411 extern void get_myaddress (struct sockaddr_in *) __THROW;
|
/glibc-2.36/conform/data/netinet/ |
D | in.h-data | 11 type {struct sockaddr_in} 13 element {struct sockaddr_in} sa_family_t sin_family 14 element {struct sockaddr_in} in_port_t sin_port 15 element {struct sockaddr_in} {struct in_addr} sin_addr 16 element {struct sockaddr_in} {unsigned char} sin_zero [8]
|
/glibc-2.36/posix/ |
D | tst-getaddrinfo2.c | 24 struct sockaddr_in *psin = 0; in do_test() 36 ntohs (((struct sockaddr_in *) pai->ai_addr)->sin_port)); in do_test() 40 err |= pai->ai_addrlen != sizeof (struct sockaddr_in); in do_test() 44 ntohs (((struct sockaddr_in *) pai->ai_addr)->sin_port) != port; in do_test()
|
D | tst-getaddrinfo3.c | 44 if (ai_res->ai_addrlen != sizeof (struct sockaddr_in)) \ in do_test() 48 sizeof (struct sockaddr_in)); \ in do_test() 52 inet_ntoa (((struct sockaddr_in *) ai_res->ai_addr)->sin_addr))\ in do_test() 57 inet_ntoa (((struct sockaddr_in *) ai_res->ai_addr)->sin_addr), \ in do_test()
|
D | tst-rfc3484-3.c | 74 struct sockaddr_in addrs[] = 122 struct sockaddr_in so; in do_test() 149 … struct in_addr addr = ((struct sockaddr_in *) (results[order[i]].dest_addr->ai_addr))->sin_addr; in do_test()
|
D | tst-rfc3484.c | 74 struct sockaddr_in addrs[] = 114 struct sockaddr_in so; in do_test() 141 … struct in_addr addr = ((struct sockaddr_in *) (results[order[i]].dest_addr->ai_addr))->sin_addr; in do_test()
|
/glibc-2.36/sunrpc/ |
D | pm_getport.c | 49 __get_socket (struct sockaddr_in *saddr) in __get_socket() 55 struct sockaddr_in laddr; in __get_socket() 84 __libc_rpc_getport (struct sockaddr_in *address, u_long program, in __libc_rpc_getport() 149 pmap_getport (struct sockaddr_in *address, u_long program, u_long version, in libc_hidden_def()
|
D | pmap_clnt.c | 56 __get_myaddress (struct sockaddr_in *addr) in __get_myaddress() 78 *addr = *((struct sockaddr_in *) run->ifa_addr); in __get_myaddress() 108 struct sockaddr_in myaddress; in pmap_set() 144 struct sockaddr_in myaddress; in libc_hidden_nolink_sunrpc()
|
D | tst-svc_register.c | 57 static inline struct sockaddr_in 60 return (struct sockaddr_in) in rpcbind_address() 160 struct sockaddr_in address = rpcbind_address (); in get_test_state() 210 struct sockaddr_in sin = rpcbind_address (); in do_test()
|
D | clnt_udp.c | 94 struct sockaddr_in cu_raddr; 124 __libc_clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, in __libc_clntudp_bufcreate() 188 (void) bindresvport (*sockp, (struct sockaddr_in *) 0); in __libc_clntudp_bufcreate() 218 clntudp_bufcreate (struct sockaddr_in *raddr, u_long program, u_long version, in libc_hidden_def() 228 clntudp_create (struct sockaddr_in *raddr, u_long program, u_long version, in libc_hidden_nolink_sunrpc() 286 struct sockaddr_in from; in clntudp_call() 416 struct sockaddr_in err_addr; in clntudp_call() 580 *(struct sockaddr_in *) info = cu->cu_raddr; in clntudp_control()
|
D | tst-getmyaddr.c | 11 struct sockaddr_in ad; in do_test() 12 struct sockaddr_in ad2; in do_test()
|
D | get_myaddr.c | 56 get_myaddress (struct sockaddr_in *addr) in get_myaddress() 79 *addr = *((struct sockaddr_in *) run->ifa_addr); in get_myaddress()
|
/glibc-2.36/nis/ |
D | nis_findserv.c | 34 struct sockaddr_in cu_raddr; 54 __pmap_getnisport (struct sockaddr_in *address, u_long program, in __pmap_getnisport() 64 struct sockaddr_in sin; 77 struct sockaddr_in sin, saved_sin; in __nis_findfastest_with_timeout() 162 sizeof (struct sockaddr_in)); in __nis_findfastest_with_timeout()
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | tst-socket-timestamp.c | 40 static struct sockaddr_in srv_addr; 43 do_sendto (const struct sockaddr_in *addr, int nmsgs) in do_sendto() 243 && cmsg->cmsg_len >= CMSG_LEN (sizeof (struct sockaddr_in))) in do_recvmsg_multiple_ancillary() 245 struct sockaddr_in sa; in do_recvmsg_multiple_ancillary() 290 + CMSG_SPACE (sizeof (struct sockaddr_in)) in do_test_multiple_ancillary() 309 srv_addr = (struct sockaddr_in) { in do_test()
|
/glibc-2.36/sysdeps/posix/ |
D | getaddrinfo.c | 1061 socklen = sizeof (struct sockaddr_in); in generate_addrinfo() 1100 struct sockaddr_in *sinp = (struct sockaddr_in *) ai->ai_addr; in generate_addrinfo() 1272 const struct sockaddr_in *in = (const struct sockaddr_in *) in6; in get_scope() 1390 const struct sockaddr_in *in = (const struct sockaddr_in *) in6; in match_prefix() 1636 struct sockaddr_in *in1_dst in rfc3484_sort() 1637 = (struct sockaddr_in *) a1->dest_addr->ai_addr; in rfc3484_sort() 1639 struct sockaddr_in *in1_src in rfc3484_sort() 1640 = (struct sockaddr_in *) &a1->source_addr; in rfc3484_sort() 1647 struct sockaddr_in *in2_dst in rfc3484_sort() 1648 = (struct sockaddr_in *) a2->dest_addr->ai_addr; in rfc3484_sort() [all …]
|
/glibc-2.36/include/rpc/ |
D | pmap_clnt.h | 11 extern int __get_socket (struct sockaddr_in *saddr) attribute_hidden; 12 extern u_short __libc_rpc_getport (struct sockaddr_in *address, u_long program,
|
/glibc-2.36/manual/examples/ |
D | inetcli.c | 48 extern void init_sockaddr (struct sockaddr_in *name, in main() 52 struct sockaddr_in servername; in main()
|