/freebsd-current/contrib/tcp_wrappers/ |
H A D | workarounds.c | 122 int fix_recvfrom(int sock, char *buf, int buflen, int flags, argument 129 if ((ret = recvfrom(sock, buf, buflen, flags, from, fromlen)) >= 0) { 157 int fix_getpeername(int sock, struct sockaddr *sa, int *len) argument 166 if ((ret = getpeername(sock, sa, len)) >= 0
|
/freebsd-current/contrib/ntp/sntp/libevent/ |
H A D | log.c | 123 event_sock_err(int eval, evutil_socket_t sock, const char *fmt, ...) argument 126 int err = evutil_socket_geterror(sock); 135 event_sock_warn(evutil_socket_t sock, const char *fmt, ...) argument 138 int err = evutil_socket_geterror(sock);
|
/freebsd-current/contrib/ntp/sntp/tests/ |
H A D | utilities.c | 13 struct addrinfo CreateAddrinfo(sockaddr_u* sock); 37 CreateAddrinfo(sockaddr_u* sock) { argument 39 a.ai_family = sock->sa.sa_family; 41 a.ai_addr = &sock->sa;
|
/freebsd-current/lib/libnetgraph/ |
H A D | Makefile | 9 SRCS= sock.c msg.c debug.c
|
/freebsd-current/contrib/libevent/ |
H A D | log.c | 123 event_sock_err(int eval, evutil_socket_t sock, const char *fmt, ...) argument 126 int err = evutil_socket_geterror(sock); 135 event_sock_warn(evutil_socket_t sock, const char *fmt, ...) argument 138 int err = evutil_socket_geterror(sock);
|
/freebsd-current/stand/libsa/ |
H A D | rarp.c | 58 rarp_getipaddress(int sock) argument 73 printf("rarp: socket=%d\n", sock); 75 if (!(d = socktodesc(sock))) { 76 printf("rarp: bad socket. %d\n", sock);
|
H A D | netif.c | 296 socktodesc(int sock) argument 300 if (sock < 0) 303 desc = socktodesc_impl(sock); 348 netif_close(int sock) argument 354 s = socktodesc_impl(sock); 355 if (s == NULL || sock < 0) {
|
/freebsd-current/sbin/hastd/ |
H A D | proto_socketpair.c | 89 int sock; local 107 sock = spctx->sp_fd[0]; 111 sock = spctx->sp_fd[1]; 121 return (proto_common_send(sock, data, size, fd));
|
/freebsd-current/sbin/natd/ |
H A D | icmp.c | 36 int SendNeedFragIcmp (int sock, struct ip* failedDgram, int mtu) argument 111 wrote = sendto (sock,
|
/freebsd-current/contrib/ntp/sntp/libevent/sample/ |
H A D | dns-example.c | 198 evutil_socket_t sock; local 200 sock = socket(PF_INET, SOCK_DGRAM, 0); 201 if (sock == -1) { 205 evutil_make_socket_nonblocking(sock); 209 if (bind(sock, (struct sockaddr*)&my_addr, sizeof(my_addr))<0) { 213 evdns_add_server_port_with_base(event_base, sock, 0, evdns_server_callback, NULL);
|
/freebsd-current/crypto/openssl/crypto/bio/ |
H A D | bio_sock.c | 104 int BIO_sock_error(int sock) argument 115 i = getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *)&j, &size); 250 int BIO_accept(int sock, char **ip_port) argument 255 ret = BIO_accept_ex(sock, &res, 0); 358 int BIO_sock_info(int sock, argument 367 ret = getsockname(sock, BIO_ADDR_sockaddr_noconst(info->addr),
|
/freebsd-current/usr.sbin/rtsold/ |
H A D | cap_sendmsg.c | 67 int sock; local 72 if ((sock = socket(AF_INET6, SOCK_RAW, proto)) < 0) 75 if (caph_rights_limit(sock, &rights) != 0) 77 *sockp = sock; 83 sendpacket(int sock, struct sockaddr_in6 *dst, uint32_t ifindex, int hoplimit, argument 120 return (sendmsg(sock, &hdr, 0));
|
/freebsd-current/contrib/libevent/sample/ |
H A D | dns-example.c | 198 evutil_socket_t sock; local 200 sock = socket(PF_INET, SOCK_DGRAM, 0); 201 if (sock == -1) { 205 evutil_make_socket_nonblocking(sock); 209 if (bind(sock, (struct sockaddr*)&my_addr, sizeof(my_addr))<0) { 213 evdns_add_server_port_with_base(event_base, sock, 0, evdns_server_callback, NULL);
|
/freebsd-current/tests/sys/capsicum/ |
H A D | bindat_connectat.c | 143 int sock; local 150 /* note: sock is created _after_ cap_enter() and contains all rights */ 151 ATF_REQUIRE((sock = socket(AF_INET, SOCK_STREAM, 0)) >= 0); 163 check_2(bindat_fdcwd, sock, &sin); 164 check_2(bind, sock, &sin); 165 check_2(connectat_fdcwd, sock, &sin); 166 check_2(connect, sock, &sin);
|
/freebsd-current/usr.sbin/ndp/ |
H A D | ndp.c | 869 int sock; local 871 if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) 877 if (ioctl(sock, SIOCGNBRINFO_IN6, (caddr_t)&nbi) < 0) { 880 close(sock); 884 close(sock); 997 int i, sock; local 1003 if ((sock = socket(AF_INET6, SOCK_DGRAM, 0)) < 0) { 1009 if (ioctl(sock, SIOCGIFINFO_IN6, (caddr_t)&nd) < 0) { 1068 if (ioctl(sock, SIOCSIFINFO_IN6, (caddr_t)&nd) < 0) { 1081 if (ioctl(sock, SIOCGIFINFO_IN 1403 int sock; local 1418 int sock; local 1433 int sock; local 1450 int sock; local 1476 int sock; local [all...] |
/freebsd-current/contrib/wpa/src/common/ |
H A D | dpp_tcp.c | 31 int sock; member in struct:dpp_connection 70 int sock; member in struct:dpp_controller 80 static void dpp_conn_tx_ready(int sock, void *eloop_ctx, void *sock_ctx); 90 if (conn->sock >= 0) { 92 conn->sock); 93 eloop_unregister_sock(conn->sock, EVENT_TYPE_READ); 94 eloop_unregister_sock(conn->sock, EVENT_TYPE_WRITE); 95 close(conn->sock); 204 eloop_unregister_sock(conn->sock, EVENT_TYPE_WRITE); 208 res = send(conn->sock, 329 dpp_conn_tx_ready(int sock, void *eloop_ctx, void *sock_ctx) argument [all...] |
/freebsd-current/contrib/libpcap/rpcapd/ |
H A D | rpcapd.c | 77 SOCKET sock; member in struct:listen_sock 623 SOCKET sock; local 626 if ((sock = sock_open(NULL, tempaddrinfo, SOCKOPEN_SERVER, SOCKET_MAXCONN, errbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCKET) 673 sock_info->sock = sock; 912 if (WSAEventSelect(sock_info->sock, event, FD_ACCEPT) == SOCKET_ERROR) 970 if (WSAEnumNetworkEvents(sock_info->sock, 999 accept_connection(sock_info->sock); 1014 if (sock_info->sock + 1 > num_sock_fds) 1016 if ((unsigned int)(sock_info->sock [all...] |
/freebsd-current/crypto/openssh/ |
H A D | channels.c | 438 c->sock = (rfd == wfd) ? rfd : -1; 587 if (*fdp == c->sock) { 590 c->sock = -1; 603 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; local 605 channel_close_fd(ssh, c, &c->sock); 606 if (rfd != sock) 608 if (wfd != sock && wfd != rfd) 610 if (efd != sock && efd != rfd && efd != wfd) 868 channel_close_fd(ssh, c, &c->sock); 2040 int err = 0, sock, isopen, r; local 3801 int sock, r, success = 0, wildcard = 0, is_client; local 3960 int port, sock; local 4599 int sock, saved_errno; local 4679 int sock = -1; local 4744 int sock; local 4826 int sock; local 4975 int sock; local 5019 int display_number, sock; local 5119 int sock; local 5180 int gaierr, sock = 0; local [all...] |
/freebsd-current/contrib/wpa/src/radius/ |
H A D | radius_das.c | 20 int sock; member in struct:radius_das_data 381 static void radius_das_receive(int sock, void *eloop_ctx, void *sock_ctx) argument 404 len = recvfrom(sock, buf, sizeof(buf), 0, 497 res = sendto(das->sock, wpabuf_head(rbuf), 568 das->sock = radius_das_open_socket(conf->port); 569 if (das->sock < 0) { 576 if (eloop_register_read_sock(das->sock, radius_das_receive, das, NULL)) 591 if (das->sock >= 0) { 592 eloop_unregister_read_sock(das->sock); 593 close(das->sock); [all...] |
/freebsd-current/contrib/ntp/sntp/libevent/include/event2/ |
H A D | util.h | 393 @param sock The socket to make nonblocking 397 int evutil_make_socket_nonblocking(evutil_socket_t sock); 407 @param sock The socket to make reusable 411 int evutil_make_listen_socket_reuseable(evutil_socket_t sock); 420 @param sock The socket to make reusable 424 int evutil_make_listen_socket_reuseable_port(evutil_socket_t sock); 432 @param sock The socket to make in ipv6only working mode 436 int evutil_make_listen_socket_ipv6only(evutil_socket_t sock); 441 @param sock The socket to be closed 445 int evutil_make_socket_closeonexec(evutil_socket_t sock); [all...] |
/freebsd-current/sbin/dhclient/ |
H A D | bpf.c | 72 int sock, b; local 77 sock = open(filename, flags); 78 if (sock < 0) { 88 if (ioctl(sock, BIOCSETIF, info->ifp) < 0) 94 if (ioctl(sock, BIOCSETVLANPCP, 100 return (sock); 147 int sock, on = 1; local 177 if ((sock = socket(AF_INET, SOCK_RAW, IPPROTO_UDP)) == -1) 179 if (setsockopt(sock, IPPROTO_IP, IP_HDRINCL, &on, 182 info->ufdesc = sock; [all...] |
H A D | dispatch.c | 482 int sock; local 484 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) == -1) 489 if (ioctl(sock, SIOCGIFMEDIA, (caddr_t)&ifmr) == -1) { 494 close(sock); 497 close(sock); 539 int sock; local 542 if ((sock = socket(AF_INET, SOCK_DGRAM, 0)) == -1) 550 if (ioctl(sock, SIOCGIFMTU, (caddr_t)&ifr) == -1) 559 if (ioctl(sock, SIOCSIFMTU, &ifr) == -1) 564 close(sock); [all...] |
/freebsd-current/contrib/libevent/include/event2/ |
H A D | util.h | 393 @param sock The socket to make nonblocking 397 int evutil_make_socket_nonblocking(evutil_socket_t sock); 407 @param sock The socket to make reusable 411 int evutil_make_listen_socket_reuseable(evutil_socket_t sock); 420 @param sock The socket to make reusable 424 int evutil_make_listen_socket_reuseable_port(evutil_socket_t sock); 432 @param sock The socket to make in ipv6only working mode 436 int evutil_make_listen_socket_ipv6only(evutil_socket_t sock); 441 @param sock The socket to be closed 445 int evutil_make_socket_closeonexec(evutil_socket_t sock); [all...] |
/freebsd-current/contrib/ofed/libibverbs/ |
H A D | neigh.c | 316 err = nl_socket_add_membership(neigh_handler->sock, 328 nl_socket_disable_seq_check(neigh_handler->sock); 329 nl_socket_modify_cb(neigh_handler->sock, NL_CB_VALID, NL_CB_CUSTOM, 332 fd = nl_socket_get_fd(neigh_handler->sock); 360 nl_recvmsgs_default(neigh_handler->sock); 364 nl_cache_refill(neigh_handler->sock, 642 neigh_handler->sock = nl_socket_alloc(); 643 if (neigh_handler->sock == NULL) { 648 err = nl_connect(neigh_handler->sock, NETLINK_ROUTE); 652 err = rtnl_link_alloc_cache(neigh_handler->sock, AF_UNSPE [all...] |
/freebsd-current/contrib/llvm-project/lldb/source/Host/common/ |
H A D | TCPSocket.cpp | 264 NativeSocket sock = kInvalidSocketValue; local 274 io_sp, [fd, inherit, &sock, &AcceptAddr, &error, 277 sock = AcceptSocket(fd, &AcceptAddr.sockaddr(), &sa_len, inherit, 297 if (sock != kInvalidSocketValue) { 298 CLOSE_SOCKET(sock); 299 sock = kInvalidSocketValue; 307 accepted_socket.reset(new TCPSocket(sock, *this));
|