Searched defs:socklen (Results 1 - 25 of 36) sorted by relevance

12

/freebsd-head/tools/regression/sockets/listen_kqueue/
H A Dlisten_kqueue.c53 socklen_t socklen; local
107 (struct sockaddr *)&addr, &socklen);
/freebsd-head/tools/regression/sockets/unix_cmsg/
H A Dt_cmsg_len.c54 socklen_t socklen; local
77 for (socklen = 0; socklen < CMSG_LEN(0); ++socklen) {
78 cmsghdr->cmsg_len = socklen;
93 if (socklen == CMSG_LEN(0))
/freebsd-head/contrib/libevent/sample/
H A Dhello-world.c33 struct sockaddr *, int socklen, void *);
90 struct sockaddr *sa, int socklen, void *user_data)
89 listener_cb(struct evconnlistener *listener, evutil_socket_t fd, struct sockaddr *sa, int socklen, void *user_data) argument
H A Dhttp-server.c381 ev_socklen_t socklen = sizeof(ss); local
388 if (getsockname(fd, (struct sockaddr *)&ss, &socklen)) {
H A Dle-proxy.c212 int socklen; local
235 socklen = sizeof(listen_on_addr);
237 (struct sockaddr*)&listen_on_addr, &socklen)<0) {
245 socklen = sizeof(struct sockaddr_in);
278 -1, (struct sockaddr*)&listen_on_addr, socklen);
/freebsd-head/tools/regression/netinet/msocket/
H A Dmsocket.c86 socklen_t socklen; local
94 socklen = sizeof(uc);
96 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen);
120 socklen = sizeof(uc);
121 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen);
142 socklen_t socklen; local
150 socklen = sizeof(ia);
152 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen);
177 socklen = sizeof(ia);
178 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen);
[all...]
/freebsd-head/contrib/ntp/sntp/libevent/test/
H A Dregress_listener.c56 struct sockaddr *addr, int socklen, void *arg)
55 acceptcb(struct evconnlistener *listener, evutil_socket_t fd, struct sockaddr *addr, int socklen, void *arg) argument
H A Dregress_testutils.c81 ev_socklen_t socklen = sizeof(ss); local
82 if (getsockname(fd, (struct sockaddr*)&ss, &socklen) != 0)
213 struct sockaddr *sa, ev_socklen_t *socklen)
218 return getsockname(s, sa, socklen);
212 regress_get_listener_addr(struct evconnlistener *lev, struct sockaddr *sa, ev_socklen_t *socklen) argument
H A Dtest-fdleak.c123 ev_socklen_t socklen = sizeof(ss); local
144 if (getsockname(fd, (struct sockaddr *)&ss, &socklen) < 0) {
H A Dregress_ssl.c391 struct sockaddr *addr, int socklen, void *arg)
390 acceptcb(struct evconnlistener *listener, evutil_socket_t fd, struct sockaddr *addr, int socklen, void *arg) argument
H A Dtest-ratelim.c175 struct sockaddr *sourceaddr, int socklen, void *ctx)
174 echo_listenercb(struct evconnlistener *listener, evutil_socket_t newsock, struct sockaddr *sourceaddr, int socklen, void *ctx) argument
/freebsd-head/contrib/libevent/test/
H A Dregress_listener.c59 struct sockaddr *addr, int socklen, void *arg)
58 acceptcb(struct evconnlistener *listener, evutil_socket_t fd, struct sockaddr *addr, int socklen, void *arg) argument
H A Dregress_testutils.c81 ev_socklen_t socklen = sizeof(ss); local
82 if (getsockname(fd, (struct sockaddr*)&ss, &socklen) != 0)
227 struct sockaddr *sa, ev_socklen_t *socklen)
232 return getsockname(s, sa, socklen);
226 regress_get_listener_addr(struct evconnlistener *lev, struct sockaddr *sa, ev_socklen_t *socklen) argument
H A Dtest-fdleak.c123 ev_socklen_t socklen = sizeof(ss); local
144 if (getsockname(fd, (struct sockaddr *)&ss, &socklen) < 0) {
/freebsd-head/contrib/wpa/src/common/
H A Dctrl_iface_common.c78 socklen_t socklen)
88 getnameinfo((struct sockaddr *) sock, socklen,
104 socklen - offsetof(struct sockaddr_un, sun_path));
77 sockaddr_print(int level, const char *msg, struct sockaddr_storage *sock, socklen_t socklen) argument
/freebsd-head/contrib/ntp/sntp/libevent/
H A Dbufferevent_sock.c354 struct sockaddr *sa, int socklen)
383 r = bufferevent_async_connect_(bev, fd, sa, socklen);
391 r = evutil_socket_connect_(&fd, sa, socklen);
353 bufferevent_socket_connect(struct bufferevent *bev, struct sockaddr *sa, int socklen) argument
H A Dbufferevent_async.c604 const struct sockaddr *sa, int socklen)
637 rc = ext->ConnectEx(fd, sa, socklen, NULL, 0, NULL,
603 bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd, const struct sockaddr *sa, int socklen) argument
H A Dlistener.c212 int socklen)
249 if (bind(fd, sa, socklen)<0)
398 ev_socklen_t socklen = sizeof(ss); local
399 evutil_socket_t new_fd = evutil_accept4_(fd, (struct sockaddr*)&ss, &socklen, lev->accept4_flags);
402 if (socklen == 0) {
418 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen,
808 int socklen = sizeof(ss); local
825 if (getsockname(fd, (struct sockaddr*)&ss, &socklen)) {
210 evconnlistener_new_bind(struct event_base *base, evconnlistener_cb cb, void *ptr, unsigned flags, int backlog, const struct sockaddr *sa, int socklen) argument
/freebsd-head/contrib/blacklist/port/
H A Dsockaddr_snprintf.c72 socklen(u_int af) function
94 #define SLEN(a) socklen((a)->a ## _family)
/freebsd-head/contrib/sendmail/src/
H A Dmci.c404 SOCKADDR_LEN_T socklen = sizeof(CurHostAddr); local
408 (struct sockaddr *) &CurHostAddr, &socklen); local
/freebsd-head/contrib/libevent/
H A Dbufferevent_async.c604 const struct sockaddr *sa, int socklen)
637 rc = ext->ConnectEx(fd, sa, socklen, NULL, 0, NULL,
603 bufferevent_async_connect_(struct bufferevent *bev, evutil_socket_t fd, const struct sockaddr *sa, int socklen) argument
H A Dbufferevent_sock.c380 const struct sockaddr *sa, int socklen)
409 r = bufferevent_async_connect_(bev, fd, sa, socklen);
417 r = evutil_socket_connect_(&fd, sa, socklen);
379 bufferevent_socket_connect(struct bufferevent *bev, const struct sockaddr *sa, int socklen) argument
H A Dlistener.c212 int socklen)
249 if (bind(fd, sa, socklen)<0)
398 ev_socklen_t socklen = sizeof(ss); local
399 evutil_socket_t new_fd = evutil_accept4_(fd, (struct sockaddr*)&ss, &socklen, lev->accept4_flags);
402 if (socklen == 0) {
418 cb(lev, new_fd, (struct sockaddr*)&ss, (int)socklen,
809 int socklen = sizeof(ss); local
826 if (getsockname(fd, (struct sockaddr*)&ss, &socklen)) {
210 evconnlistener_new_bind(struct event_base *base, evconnlistener_cb cb, void *ptr, unsigned flags, int backlog, const struct sockaddr *sa, int socklen) argument
/freebsd-head/usr.sbin/inetd/
H A Dbuiltins.c361 socklen_t socklen; local
530 socklen = sizeof(ss[0]);
531 if (getsockname(s, (struct sockaddr *)&ss[0], &socklen) == -1)
533 socklen = sizeof(ss[1]);
534 if (getpeername(s, (struct sockaddr *)&ss[1], &socklen) == -1)
/freebsd-head/crypto/heimdal/lib/krb5/
H A Dkrbhst.c556 socklen_t socklen; local
560 socklen = socket_sockaddr_size(addr);
562 ret = getnameinfo(addr, socklen, host, sizeof(host), port, sizeof(port),

Completed in 132 milliseconds

12