Home
last modified time | relevance | path

Searched refs:socklen_t (Results 1 – 25 of 503) sorted by relevance

12345678910>>...21

/freebsd/contrib/unbound/util/
H A Dnet_help.h157 struct sockaddr_storage* addr, socklen_t addrlen);
168 struct sockaddr_storage* addr, socklen_t addrlen);
178 struct sockaddr_storage* addr, socklen_t addrlen);
190 socklen_t* addrlen, int port);
201 socklen_t* addrlen);
214 socklen_t* addrlen, int* net);
228 socklen_t* addrlen, char** auth_name);
249 void sockaddr_store_port(struct sockaddr_storage* addr, socklen_t addrlen,
278 int sockaddr_cmp(struct sockaddr_storage* addr1, socklen_t len1,
279 struct sockaddr_storage* addr2, socklen_t len2);
[all …]
H A Dnet_help.c206 struct sockaddr_storage* addr, socklen_t addrlen) in log_addr()
223 (socklen_t)sizeof(dest)); in log_addr()
228 if(inet_ntop(af, sinaddr, dest, (socklen_t)sizeof(dest)) == 0) { in log_addr()
241 socklen_t* addrlen, int port) in extstrtoaddr()
262 socklen_t* addrlen) in ipstrtoaddr()
271 *addrlen = (socklen_t)sizeof(struct sockaddr_in6); in ipstrtoaddr()
291 *addrlen = (socklen_t)sizeof(struct sockaddr_in); in ipstrtoaddr()
303 socklen_t* addrlen, int* net) in netblockstrtoaddr()
335 struct sockaddr_storage* addr, socklen_t* addrlen, int* af) in ipdnametoaddr()
359 *addrlen = (socklen_t)sizeof(struct sockaddr_in6); in ipdnametoaddr()
[all …]
/freebsd/contrib/ldns/ldns/
H A Dnet.h42 …uint8_t **result, ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct ti…
53 int ldns_udp_bgsend2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct …
66 int ldns_udp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct t…
77 int ldns_tcp_bgsend2(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct …
90 int ldns_tcp_bgsend(ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct t…
103 …uint8_t **result, ldns_buffer *qbin, const struct sockaddr_storage *to, socklen_t tolen, struct ti…
135 int ldns_tcp_connect2(const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
146 int ldns_tcp_connect(const struct sockaddr_storage *to, socklen_t tolen, struct timeval timeout);
175 …_tcp_send_query(ldns_buffer *qbin, int sockfd, const struct sockaddr_storage *to, socklen_t tolen);
186 …_udp_send_query(ldns_buffer *qbin, int sockfd, const struct sockaddr_storage *to, socklen_t tolen);
[all …]
/freebsd/contrib/ofed/librdmacm/
H A Drsocket.h49 int rbind(int socket, const struct sockaddr *addr, socklen_t addrlen);
51 int raccept(int socket, struct sockaddr *addr, socklen_t *addrlen);
52 int rconnect(int socket, const struct sockaddr *addr, socklen_t addrlen);
58 struct sockaddr *src_addr, socklen_t *addrlen);
62 const struct sockaddr *dest_addr, socklen_t addrlen);
73 int rgetpeername(int socket, struct sockaddr *addr, socklen_t *addrlen);
74 int rgetsockname(int socket, struct sockaddr *addr, socklen_t *addrlen);
86 const void *optval, socklen_t optlen);
88 void *optval, socklen_t *optlen);
H A Dpreload.c62 int (*bind)(int socket, const struct sockaddr *addr, socklen_t addrlen);
64 int (*accept)(int socket, struct sockaddr *addr, socklen_t *addrlen);
65 int (*connect)(int socket, const struct sockaddr *addr, socklen_t addrlen);
68 struct sockaddr *src_addr, socklen_t *addrlen);
74 const struct sockaddr *dest_addr, socklen_t addrlen);
81 int (*getpeername)(int socket, struct sockaddr *addr, socklen_t *addrlen);
82 int (*getsockname)(int socket, struct sockaddr *addr, socklen_t *addrlen);
84 const void *optval, socklen_t optlen);
86 void *optval, socklen_t *optlen);
450 socklen_t len; in copysockopts()
[all …]
/freebsd/contrib/ldns/
H A Dnet.c192 ldns_tcp_connect_from(const struct sockaddr_storage *to, socklen_t tolen,
193 const struct sockaddr_storage *from, socklen_t fromlen,
234 socklen_t len = (socklen_t)sizeof(error);
283 ldns_tcp_connect(const struct sockaddr_storage *to, socklen_t tolen,
291 ldns_tcp_connect2(const struct sockaddr_storage *to, socklen_t tolen,
299 const struct sockaddr_storage *to, socklen_t tolen,
300 const struct sockaddr_storage *from, socklen_t fromlen,
317 const struct sockaddr_storage *to, socklen_t tolen,
326 const struct sockaddr_storage *to, socklen_t tolen,
337 const struct sockaddr_storage *to, socklen_t tolen,
[all …]
/freebsd/lib/libcasper/services/cap_net/
H A Dcap_net.h57 socklen_t addrlen);
59 socklen_t namelen);
64 socklen_t salen, char *host, size_t hostlen, char *serv, size_t servlen,
75 const struct sockaddr *sa, socklen_t salen);
83 const struct sockaddr *sa, socklen_t salen);
86 const struct sockaddr *sa, socklen_t salen);
93 socklen_t len, int af);
124 const struct sockaddr *sa __unused, socklen_t salen __unused) in cap_net_limit_addr2name()
145 const struct sockaddr *sa __unused, socklen_t salen __unused) in cap_net_limit_connect()
152 const struct sockaddr *sa __unused, socklen_t salen __unused) in cap_net_limit_bind()
/freebsd/sys/sys/
H A Dsocket.h71 typedef __socklen_t socklen_t; typedef
438 socklen_t msg_namelen; /* size of address */
442 socklen_t msg_controllen; /* ancillary data buffer len */
486 socklen_t cmsg_len; /* data byte count, including hdr */
694 int accept(int, struct sockaddr * __restrict, socklen_t * __restrict);
695 int bind(int, const struct sockaddr *, socklen_t);
696 int connect(int, const struct sockaddr *, socklen_t);
698 int accept4(int, struct sockaddr * __restrict, socklen_t * __restrict, int);
699 int bindat(int, int, const struct sockaddr *, socklen_t);
700 int connectat(int, int, const struct sockaddr *, socklen_t);
[all …]
/freebsd/contrib/unbound/services/cache/
H A Dinfra.h62 socklen_t addrlen;
172 socklen_t addrlen;
247 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name,
269 socklen_t addrlen, uint8_t* name, size_t namelen,
288 struct sockaddr_storage* addr, socklen_t addrlen,
308 socklen_t addrlen, uint8_t* name, size_t namelen, int qtype,
320 struct sockaddr_storage* addr, socklen_t addrlen,
336 struct sockaddr_storage* addr, socklen_t addrlen,
358 struct sockaddr_storage* addr, socklen_t addrlen,
379 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t* name,
[all …]
/freebsd/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.h40 int swrap_accept(int s, struct sockaddr *addr, socklen_t *addrlen);
41 int swrap_connect(int s, const struct sockaddr *serv_addr, socklen_t addrlen);
42 int swrap_bind(int s, const struct sockaddr *myaddr, socklen_t addrlen);
44 int swrap_getpeername(int s, struct sockaddr *name, socklen_t *addrlen);
45 int swrap_getsockname(int s, struct sockaddr *name, socklen_t *addrlen);
46 int swrap_getsockopt(int s, int level, int optname, void *optval, socklen_t *optlen);
47 int swrap_setsockopt(int s, int level, int optname, const void *optval, socklen_t optlen);
48 ssize_t swrap_recvfrom(int s, void *buf, size_t len, int flags, struct sockaddr *from, socklen_t *f…
49 …_sendto(int s, const void *buf, size_t len, int flags, const struct sockaddr *to, socklen_t tolen);
/freebsd/contrib/wpa/src/common/
H A Dctrl_iface_common.h26 socklen_t addrlen;
33 socklen_t socklen);
36 socklen_t fromlen, const char *input);
38 socklen_t fromlen);
40 socklen_t fromlen, const char *level);
H A Dctrl_iface_common.c17 static int sockaddr_compare(struct sockaddr_storage *a, socklen_t a_len, in sockaddr_compare()
18 struct sockaddr_storage *b, socklen_t b_len) in sockaddr_compare()
78 socklen_t socklen) in sockaddr_print()
144 socklen_t fromlen, const char *input) in ctrl_iface_attach()
171 socklen_t fromlen) in ctrl_iface_detach()
191 socklen_t fromlen, const char *level) in ctrl_iface_level()
/freebsd/sys/libkern/
H A Dinet_ntop.c29 static char *inet_ntop4(const u_char *src, char *dst, socklen_t size);
30 static char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
41 inet_ntop(int af, const void *src, char *dst, socklen_t size) in inet_ntop()
66 inet_ntop4(const u_char *src, char *dst, socklen_t size) in inet_ntop4()
73 if (l <= 0 || (socklen_t) l >= size) { in inet_ntop4()
87 inet_ntop6(const u_char *src, char *dst, socklen_t size) in inet_ntop6()
171 if ((socklen_t)(tp - tmp) > size) { in inet_ntop6()
/freebsd/sys/netinet6/
H A Din6.h698 typedef __socklen_t socklen_t; typedef
727 extern int inet6_opt_init(void *, socklen_t);
728 extern int inet6_opt_append(void *, socklen_t, int, uint8_t, socklen_t,
730 extern int inet6_opt_finish(void *, socklen_t, int);
731 extern int inet6_opt_set_val(void *, int, void *, socklen_t);
733 extern int inet6_opt_next(void *, socklen_t, int, uint8_t *, socklen_t *,
735 extern int inet6_opt_find(void *, socklen_t, int, uint8_t, socklen_t *,
737 extern int inet6_opt_get_val(void *, int, void *, socklen_t);
738 extern socklen_t inet6_rth_space(int, int);
739 extern void *inet6_rth_init(void *, socklen_t, int, int);
/freebsd/lib/libc/inet/
H A Dinet_ntop.c40 static const char *inet_ntop4(const u_char *src, char *dst, socklen_t size);
41 static const char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
53 socklen_t size) in inet_ntop()
79 inet_ntop4(const u_char *src, char *dst, socklen_t size) in inet_ntop4()
86 if (l <= 0 || (socklen_t) l >= size) { in inet_ntop4()
101 inet_ntop6(const u_char *src, char *dst, socklen_t size) in inet_ntop6()
185 if ((socklen_t)(tp - tmp) > size) { in inet_ntop6()
/freebsd/contrib/unbound/services/
H A Doutside_network.h203 socklen_t addrlen;
260 socklen_t addrlen;
322 socklen_t addrlen;
398 socklen_t addrlen;
473 socklen_t addrlen;
662 char* tls_auth_name, struct sockaddr_storage* addr, socklen_t addrlen,
747 int outnet_get_tcp_fd(struct sockaddr_storage* addr, socklen_t addrlen,
762 struct sockaddr_storage* to_addr, socklen_t to_addrlen);
784 struct sockaddr_storage* to_addr, socklen_t to_addrlen,
807 struct sockaddr_storage* to_addr, socklen_t to_addrlen, int timeout,
[all …]
/freebsd/tests/sys/kern/
H A Dsocket_accept.c42 ATF_REQUIRE(setsockopt(l, SOL_SOCKET, SO_REUSEADDR, &(socklen_t){1}, in tcp4_listensock()
51 &(socklen_t){ sizeof(*sin) }) == 0); in tcp4_listensock()
74 socklen_t salen; in ATF_TC_BODY()
94 socklen_t salen; in ATF_TC_BODY()
104 &(socklen_t){ sizeof(sin) }) == 0); in ATF_TC_BODY()
/freebsd/lib/libc/net/
H A Dip6opt.c388 inet6_opt_init(void *extbuf, socklen_t extlen) in inet6_opt_init()
402 inet6_opt_append(void *extbuf, socklen_t extlen, int offset, u_int8_t type, in inet6_opt_append()
403 socklen_t len, u_int8_t align, void **databufp) in inet6_opt_append()
467 inet6_opt_finish(void *extbuf, socklen_t extlen, int offset) in inet6_opt_finish()
492 inet6_opt_set_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_set_val()
500 inet6_opt_next(void *extbuf, socklen_t extlen, int offset, u_int8_t *typep, in inet6_opt_next()
501 socklen_t *lenp, void **databufp) in inet6_opt_next()
549 inet6_opt_find(void *extbuf, socklen_t extlen, int offset, u_int8_t type, in inet6_opt_find()
550 socklen_t *lenp, void **databufp) in inet6_opt_find()
591 inet6_opt_get_val(void *databuf, int offset, void *val, socklen_t vallen) in inet6_opt_get_val()
H A Dsctp_sys_calls.c76 socklen_t siz; in sctp_getaddrlen()
161 (socklen_t)len); in sctp_connectx()
272 sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t *size) in sctp_opt_info()
392 socklen_t opt_len; in sctp_getpaddrs()
402 opt_len = (socklen_t)sizeof(uint32_t); in sctp_getpaddrs()
411 opt_len = (socklen_t)((size_t)size_of_addresses + sizeof(struct sctp_getaddresses)); in sctp_getpaddrs()
452 socklen_t opt_len; in sctp_getladdrs()
461 opt_len = (socklen_t)sizeof(uint32_t); in sctp_getladdrs()
466 opt_len = (socklen_t)((size_t)size_of_addresses + sizeof(struct sctp_getaddresses)); in sctp_getladdrs()
510 socklen_t tolen, in sctp_sendmsg()
[all …]
H A Dgethostnamadr.c165 socklen_t len; in host_id_func()
212 len = va_arg(ap, socklen_t); in host_id_func()
217 sizeof(socklen_t) + len; in host_id_func()
237 memcpy(p, &len, sizeof(socklen_t)); in host_id_func()
238 p += sizeof(socklen_t); in host_id_func()
260 socklen_t len __unused; in host_marshal_func()
275 len = va_arg(ap, socklen_t); in host_marshal_func()
366 socklen_t len __unused; in host_unmarshal_func()
382 len = va_arg(ap, socklen_t); in host_unmarshal_func()
583 gethostbyaddr_r(const void *addr, socklen_t len, int af, struct hostent *hp, in gethostbyaddr_r()
[all …]
/freebsd/contrib/unbound/util/storage/
H A Ddnstree.h85 socklen_t addrlen;
174 struct sockaddr_storage* addr, socklen_t addrlen, int net);
198 struct sockaddr_storage* addr, socklen_t addrlen);
209 struct sockaddr_storage* addr, socklen_t addrlen, int net);
/freebsd/contrib/unbound/iterator/
H A Diter_delegpt.h152 socklen_t addrlen;
235 socklen_t addrlen, uint8_t bogus, uint8_t lame, int* additions);
288 struct sockaddr_storage* addr, socklen_t addrlen,
310 struct sockaddr_storage* addr, socklen_t addrlen);
438 socklen_t addrlen, uint8_t bogus, uint8_t lame, char* tls_auth_name,
454 struct sockaddr_storage* addr, socklen_t addrlen, uint8_t bogus,
/freebsd/include/
H A Dnetdb.h79 typedef __socklen_t socklen_t; typedef
138 socklen_t ai_addrlen; /* length of ai_addr */
233 struct hostent *gethostbyaddr(const void *, socklen_t, int);
252 int getnameinfo(const struct sockaddr *, socklen_t, char *,
261 int gethostbyaddr_r(const void *, socklen_t, int, struct hostent *,
/freebsd/contrib/llvm-project/lldb/source/Host/common/
H A DTCPSocket.cpp84 socklen_t sock_addr_len = sock_addr.GetMaxLength(); in GetLocalPortNumber()
89 socklen_t sock_addr_len = sock_addr.GetMaxLength(); in GetLocalPortNumber()
102 socklen_t sock_addr_len = sock_addr.GetMaxLength(); in GetLocalIPAddress()
112 socklen_t sock_addr_len = sock_addr.GetMaxLength(); in GetRemotePortNumber()
124 socklen_t sock_addr_len = sock_addr.GetMaxLength(); in GetRemoteIPAddress()
237 socklen_t sa_len = address.GetLength(); in Listen()
276 socklen_t sa_len = AcceptAddr.GetMaxLength(); in Accept()
/freebsd/contrib/unbound/daemon/
H A Dacl_list.h137 struct sockaddr_storage* addr, socklen_t addrlen,
185 socklen_t addrlen);
203 socklen_t addrlen, enum acl_access acl, struct acl_addr* acladdr);

12345678910>>...21