Home
last modified time | relevance | path

Searched refs:sockaddr (Results 1 – 25 of 115) sorted by relevance

12345

/glibc-2.36/support/
Dxsocket.h28 void xgetsockname (int, struct sockaddr *, socklen_t *);
29 void xconnect (int, const struct sockaddr *, socklen_t);
30 void xbind (int, const struct sockaddr *, socklen_t);
32 int xaccept (int, struct sockaddr *, socklen_t *);
33 int xaccept4 (int, struct sockaddr *, socklen_t *, int);
35 const struct sockaddr *, socklen_t);
36 size_t xrecvfrom (int, void *, size_t, int, struct sockaddr *, socklen_t *);
/glibc-2.36/sysdeps/gnu/net/
Dif.h90 struct sockaddr ifa_addr; /* Address of interface. */
93 struct sockaddr ifu_broadaddr;
94 struct sockaddr ifu_dstaddr;
137 struct sockaddr ifru_addr;
138 struct sockaddr ifru_dstaddr;
139 struct sockaddr ifru_broadaddr;
140 struct sockaddr ifru_netmask;
141 struct sockaddr ifru_hwaddr;
/glibc-2.36/conform/data/sys/
Dsocket.h-data11 type {struct sockaddr}
13 element {struct sockaddr} sa_family_t sa_family
14 element {struct sockaddr} char sa_data []
99 function int accept (int, struct sockaddr*, socklen_t*)
100 function int bind (int, const struct sockaddr*, socklen_t)
101 function int connect (int, const struct sockaddr*, socklen_t)
102 function int getpeername (int, struct sockaddr*, socklen_t*)
103 function int getsockname (int, struct sockaddr*, socklen_t*)
107 function ssize_t recvfrom (int, void*, size_t, int, struct sockaddr*, socklen_t*)
111 function ssize_t sendto (int, const void*, size_t, int, const struct sockaddr*, socklen_t)
/glibc-2.36/sysdeps/unix/sysv/linux/net/
Dif_arp.h141 struct sockaddr arp_pa; /* Protocol address. */
142 struct sockaddr arp_ha; /* Hardware address. */
144 struct sockaddr arp_netmask; /* Netmask (only for proxy arps). */
150 struct sockaddr arp_pa; /* Protocol address. */
151 struct sockaddr arp_ha; /* Hardware address. */
153 struct sockaddr arp_netmask; /* Netmask (only for proxy arps). */
Droute.h34 struct sockaddr rt_dst; /* Target address. */
35 struct sockaddr rt_gateway; /* Gateway addr (RTF_GATEWAY). */
36 struct sockaddr rt_genmask; /* Target network mask (IP). */
/glibc-2.36/inet/
Difaddrs.h36 struct sockaddr *ifa_addr; /* Network address of this interface. */
37 struct sockaddr *ifa_netmask; /* Netmask of this interface. */
44 struct sockaddr *ifu_broadaddr; /* Broadcast address of this interface. */
45 struct sockaddr *ifu_dstaddr; /* Point-to-point destination address. */
Dgetnameinfo.c233 const struct sockaddr *sa, socklen_t addrlen, in gni_host_inet_name()
334 const struct sockaddr *sa, socklen_t addrlen, in gni_host_inet_numeric()
376 const struct sockaddr *sa, socklen_t addrlen, in gni_host_inet()
397 const struct sockaddr *sa, socklen_t addrlen, in gni_host_local()
416 const struct sockaddr *sa, socklen_t addrlen, in gni_host()
436 const struct sockaddr *sa, socklen_t addrlen, in gni_serv_inet()
473 const struct sockaddr *sa, socklen_t addrlen, in gni_serv_local()
484 const struct sockaddr *sa, socklen_t addrlen, in gni_serv()
500 getnameinfo (const struct sockaddr *sa, socklen_t addrlen, char *host, in getnameinfo()
Drcmd.c85 static int __validuser2_sa (FILE *, struct sockaddr *, size_t,
87 static int ruserok2_sa (struct sockaddr *ra, size_t ralen,
90 static int ruserok_sa (struct sockaddr *ra, size_t ralen,
110 struct sockaddr sa; in rcmd_af()
370 struct sockaddr generic; in rresvport_af()
522 ruserok2_sa (struct sockaddr *ra, size_t ralen, int superuser, in ruserok2_sa()
581 ruserok_sa (struct sockaddr *ra, size_t ralen, int superuser, in ruserok_sa()
593 struct sockaddr generic; in iruserok_af()
643 return __validuser2_sa(hostf, (struct sockaddr *)&ra, sizeof(ra), in __ivaliduser()
650 __checkhost_sa (struct sockaddr *ra, size_t ralen, char *lhost, in __checkhost_sa()
[all …]
Dtst-getni1.c14 int r = getnameinfo((struct sockaddr *) &s, sizeof (s), NULL, 0, NULL, 0, in do_test()
23 r = getnameinfo((struct sockaddr *) &s, sizeof (s), NULL, 0, NULL, 0, in do_test()
/glibc-2.36/socket/
Dtst-accept4.c61 int ret = connect (result.socket, (const struct sockaddr *) server_address, in client_connect()
66 xgetsockname (result.socket, (struct sockaddr *) &result.address, in client_connect()
95 (struct sockaddr *) &server_address, sizeof (server_address)); in do_test()
98 xgetsockname (server_socket, (struct sockaddr *) &server_address, in do_test()
117 (struct sockaddr *) &client_address, in do_test()
/glibc-2.36/sunrpc/
Dtst-udp-garbage.c42 (struct sockaddr *) &sa, &salen) < 0) in garbage_sender_thread()
51 (struct sockaddr *) &sa, salen) < 0) in garbage_sender_thread()
75 (struct sockaddr *) &server_address, sizeof (server_address)); in do_test()
78 xgetsockname (server_fd, (struct sockaddr *) &server_address, &sinlen); in do_test()
Drtime.c97 (struct sockaddr *) addrp, sizeof (*addrp)); in rtime()
118 (struct sockaddr *) &from, &fromlen); in rtime()
125 if (__connect (s, (struct sockaddr *) addrp, sizeof (*addrp)) < 0) in rtime()
Dauth_des.c66 static bool_t synchronize (struct sockaddr *, struct rpc_timeval *);
87 struct sockaddr ad_syncaddr; /* remote host to synch with */
103 struct sockaddr *syncaddr, des_block *ckey) in authdes_create()
127 struct sockaddr *syncaddr, des_block *ckey) in libc_hidden_def()
447 synchronize (struct sockaddr *syncaddr, struct rpc_timeval *timep) in synchronize()
Dtst-udp-error.c41 xbind (fd, (struct sockaddr *) &sin, sizeof (sin)); in do_test()
43 xgetsockname (fd, (struct sockaddr *) &sin, &sinlen); in do_test()
/glibc-2.36/resolv/
Dres_get_nsaddr.c23 struct sockaddr *
33 return (struct sockaddr *) statp->_u._ext.nsaddrs[n]; in __res_get_nsaddr()
37 return (struct sockaddr *) (void *) &statp->nsaddr_list[n]; in __res_get_nsaddr()
Dres_init.c127 #define DYNARRAY_ELEMENT const struct sockaddr *
128 #define DYNARRAY_ELEMENT_FREE(e) free ((struct sockaddr *) *(e))
213 static struct sockaddr *
222 return (struct sockaddr *) sa4; in allocate_address_v4()
411 struct sockaddr *sa; in res_vinit_1()
443 sa = (struct sockaddr *) sa6; in res_vinit_1()
451 const struct sockaddr **p = nameserver_list_emplace in res_vinit_1()
515 const struct sockaddr **p in res_vinit_1()
Dresolv_conf.c224 same_address (const struct sockaddr *left, const struct sockaddr *right) in same_address()
264 if (!same_address ((struct sockaddr *) resp->_u._ext.nsaddrs[i], in resolv_conf_matches()
270 else if (!same_address ((struct sockaddr *) &resp->nsaddr_list[i], in resolv_conf_matches()
416 const struct sockaddr **nameserver_array = alloc_buffer_alloc_array in __resolv_conf_allocate()
417 (&buffer, const struct sockaddr *, init->nameserver_list_size); in __resolv_conf_allocate()
432 nameserver_array[i] = (struct sockaddr *) sa; in __resolv_conf_allocate()
439 nameserver_array[i] = (struct sockaddr *) sa; in __resolv_conf_allocate()
Dresolv_context.h124 static __attribute__ ((nonnull (1), unused)) const struct sockaddr *
136 return (const struct sockaddr *) &ctx->resp->nsaddr_list[index]; in __resolv_context_nameserver()
138 return (const struct sockaddr *) &ctx->resp->_u._ext.nsaddrs[index]; in __resolv_context_nameserver()
/glibc-2.36/sysdeps/pthread/
Dtst-cancel4.c701 while (bind (tempfd, (struct sockaddr *) &sun, in tf_accept()
718 accept (tempfd, (struct sockaddr *) &sun, &len); in tf_accept()
745 while (bind (tempfd, (struct sockaddr *) &sun, in tf_send()
755 if (connect (tempfd2, (struct sockaddr *) &sun, sizeof (sun)) != 0) in tf_send()
803 while (bind (tempfd, (struct sockaddr *) &sun, in tf_recv()
813 if (connect (tempfd2, (struct sockaddr *) &sun, sizeof (sun)) != 0) in tf_recv()
854 while (bind (tempfd, (struct sockaddr *) &sun, in tf_recvfrom()
875 (struct sockaddr *) &sun, &len); in tf_recvfrom()
902 while (bind (tempfd, (struct sockaddr *) &sun, in tf_recvmsg()
1281 while (bind (tempfd, (struct sockaddr *) &sun, in tf_sendto()
[all …]
/glibc-2.36/sysdeps/mach/hurd/net/
Dif_arp.h109 struct sockaddr arp_pa; /* Protocol address. */
110 struct sockaddr arp_ha; /* Hardware address. */
112 struct sockaddr arp_netmask; /* Netmask (only for proxy arps). */
Droute.h34 struct sockaddr rt_dst; /* Target address. */
35 struct sockaddr rt_gateway; /* Gateway addr (RTF_GATEWAY). */
36 struct sockaddr rt_genmask; /* Target network mask (IP). */
/glibc-2.36/sysdeps/mach/hurd/
Dgetpeername.c34 struct sockaddr *addr = addrarg.__sockaddr__; in __getpeername()
57 if (*len > offsetof (struct sockaddr, sa_family)) in __getpeername()
61 *len - offsetof (struct sockaddr, sa_family)); in __getpeername()
/glibc-2.36/sysdeps/unix/sysv/linux/
Dtst-socket-timestamp-compat.c35 xconnect (s, (const struct sockaddr *) addr, sizeof (*addr)); in do_sendto()
37 xsendto (s, &payload, sizeof (payload), 0, (const struct sockaddr *) addr, in do_sendto()
249 xbind (srv, (struct sockaddr *) &srv_addr, sizeof (srv_addr)); in do_test()
252 xgetsockname (srv, (struct sockaddr *) &srv_addr, &sa_len); in do_test()
Dcheck_native.c56 if (__bind (fd, (struct sockaddr *) &nladdr, sizeof (nladdr)) != 0 in __check_native()
57 || __getsockname (fd, (struct sockaddr *) &nladdr, &addr_len) != 0) in __check_native()
107 (struct sockaddr *) &nladdr, in __check_native()
/glibc-2.36/manual/examples/
Dfilesrv.c46 (struct sockaddr *) & name, &size); in main()
58 (struct sockaddr *) & name, size); in main()

12345