Home
last modified time | relevance | path

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

1234

/glibc-2.36/resolv/
Dres_isourserver.c97 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()
Dresolv_conf.c204 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 …]
Dres_send.c329 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/
Dtst-accept4.c49 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/
Dtst-sockaddr.c93 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()
Dgetnameinfo.c258 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()
Dbindresvport.c49 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/
Dpmap_clnt.h45 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,
Dclnt.h307 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/
Din.h-data11 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/
Dtst-getaddrinfo2.c24 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()
Dtst-getaddrinfo3.c44 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()
Dtst-rfc3484-3.c74 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()
Dtst-rfc3484.c74 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/
Dpm_getport.c49 __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()
Dpmap_clnt.c56 __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()
Dtst-svc_register.c57 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()
Dclnt_udp.c94 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()
Dtst-getmyaddr.c11 struct sockaddr_in ad; in do_test()
12 struct sockaddr_in ad2; in do_test()
Dget_myaddr.c56 get_myaddress (struct sockaddr_in *addr) in get_myaddress()
79 *addr = *((struct sockaddr_in *) run->ifa_addr); in get_myaddress()
/glibc-2.36/nis/
Dnis_findserv.c34 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/
Dtst-socket-timestamp.c40 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/
Dgetaddrinfo.c1061 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/
Dpmap_clnt.h11 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/
Dinetcli.c48 extern void init_sockaddr (struct sockaddr_in *name, in main()
52 struct sockaddr_in servername; in main()

1234