| /freebsd-13.1/tools/regression/netinet/ipsockopt/ |
| H A D | ipsockopt.c | 229 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl() 259 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) == 0) in test_ip_hdrincl() 303 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl() 329 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl() 357 if (getsockopt(sock, IPPROTO_IP, IP_HDRINCL, flag, &len) < 0) in test_ip_hdrincl() 404 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar() 436 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar() 497 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_uchar() 550 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean() 581 if (getsockopt(sock, IPPROTO_IP, option, val, &len) < 0) in test_ip_boolean() [all …]
|
| /freebsd-13.1/tools/regression/netinet6/icmp6_filter/ |
| H A D | icmp6_filter.c | 71 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0) in main() 88 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0) in main() 105 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0) in main() 122 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0) in main()
|
| /freebsd-13.1/tools/regression/sockets/accf_data_attach/ |
| H A D | accf_data_attach.c | 97 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len); in main() 123 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len); in main() 147 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len); in main() 168 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len); in main() 194 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len); in main() 285 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len); in main()
|
| /freebsd-13.1/tests/sys/kern/ |
| H A D | unix_seqpacket_test.c | 553 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_SNDBUF, &xs, &sl)); in ATF_TC_BODY() 554 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_RCVBUF, &xr, &sl)); in ATF_TC_BODY() 561 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_SNDBUF, &xs, &sl)); in ATF_TC_BODY() 562 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_RCVBUF, &xr, &sl)); in ATF_TC_BODY() 569 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_SNDBUF, &xs, &sl)); in ATF_TC_BODY() 570 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_RCVBUF, &xr, &sl)); in ATF_TC_BODY() 595 ATF_CHECK_EQ(0, getsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, &ls, &sl)); in ATF_TC_BODY() 596 ATF_CHECK_EQ(0, getsockopt(sv[0], SOL_SOCKET, SO_RCVBUF, &lr, &sl)); in ATF_TC_BODY() 597 ATF_CHECK_EQ(0, getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &rs, &sl)); in ATF_TC_BODY() 598 ATF_CHECK_EQ(0, getsockopt(sv[1], SOL_SOCKET, SO_RCVBUF, &rr, &sl)); in ATF_TC_BODY() [all …]
|
| /freebsd-13.1/usr.sbin/bluetooth/btpand/ |
| H A D | client.c | 97 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) { in client_init() 107 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &n, &len) == -1) { in client_init() 118 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { in client_init() 128 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &n, &len) == -1) { in client_init()
|
| H A D | server.c | 175 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) { in server_read() 187 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &n, &len) == -1) { in server_read() 199 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) { in server_read() 211 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &n, &len) == -1) { in server_read()
|
| /freebsd-13.1/crypto/openssl/crypto/bio/ |
| H A D | bss_dgram.c | 216 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 225 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_adjust_rcv_timeout() 514 getsockopt(b->num, IPPROTO_IPV6, IPV6_MTU, in dgram_ctrl() 623 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 634 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO, in dgram_ctrl() 680 if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, in dgram_ctrl() 691 if (getsockopt(b->num, SOL_SOCKET, SO_SNDTIMEO, in dgram_ctrl() 875 ret = getsockopt(fd, IPPROTO_SCTP, SCTP_LOCAL_AUTH_CHUNKS, authchunks, in BIO_new_dgram_sctp() 1202 ii = getsockopt(b->num, IPPROTO_SCTP, SCTP_PEER_AUTH_CHUNKS, in dgram_sctp_read() 1485 getsockopt(b->num, IPPROTO_SCTP, SCTP_AUTH_ACTIVE_KEY, in dgram_sctp_ctrl() [all …]
|
| /freebsd-13.1/contrib/capsicum-test/ |
| H A D | socket.cc | 88 EXPECT_NOTCAPABLE(getsockopt(cap_sock_rw, SOL_SOCKET, SO_DEBUG, &value, &len)); in TEST() 98 EXPECT_OK(getsockopt(cap_sock_all, SOL_SOCKET, SO_DEBUG, &value, &len)); in TEST() 205 EXPECT_NOTCAPABLE(getsockopt(cap_sock_rw, SOL_SOCKET, SO_REUSEPORT, &value, &len)); in TEST() 215 EXPECT_OK(getsockopt(cap_sock_all, SOL_SOCKET, SO_REUSEPORT, &value, &len)); in TEST() 284 EXPECT_NOTCAPABLE(getsockopt(cap_sock_rw, SOL_SOCKET, SO_REUSEPORT, &value, &len)); in TEST() 294 EXPECT_OK(getsockopt(cap_sock_all, SOL_SOCKET, SO_REUSEPORT, &value, &len)); in TEST()
|
| H A D | sctp.cc | 138 EXPECT_NOTCAPABLE(getsockopt(cap_sock_rw, IPPROTO_SCTP, SCTP_EVENTS, &events, &len)); in TEST() 144 EXPECT_OK(getsockopt(cap_sock_all, IPPROTO_SCTP, SCTP_EVENTS, &events, &len)); in TEST()
|
| /freebsd-13.1/crypto/heimdal/lib/roken/ |
| H A D | socket_wrapper.h | 89 #ifdef getsockopt 90 #undef getsockopt 92 #define getsockopt(s,level,optname,optval,optlen) swrap_getsockopt(s,level,optname,optval,optlen) macro
|
| /freebsd-13.1/tools/regression/sockets/unix_cmsg/ |
| H A D | t_peercred.c | 105 if (getsockopt(fd, 0, LOCAL_PEERCRED, &xucred, &len) < 0) { in t_peercred_client() 131 if (getsockopt(fd2, 0, LOCAL_PEERCRED, &xucred, &len) < 0) { in t_peercred_server()
|
| /freebsd-13.1/tools/regression/netinet/msocket/ |
| H A D | msocket.c | 96 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 121 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen); in test_u_char() 152 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr() 178 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen); in test_in_addr()
|
| /freebsd-13.1/crypto/heimdal/appl/ftp/common/ |
| H A D | sockbuf.c | 56 if(getsockopt(fd, SOL_SOCKET, optname, (void *)&curr, &optlen) == 0) { in set_buffer_size()
|
| /freebsd-13.1/lib/libsdp/ |
| H A D | session.c | 84 if (getsockopt(ss->s, SOL_L2CAP, SO_L2CAP_OMTU, &ss->omtu, &size) < 0) { in sdp_open() 95 if (getsockopt(ss->s, SOL_L2CAP, SO_L2CAP_IMTU, &ss->imtu, &size) < 0) { in sdp_open()
|
| /freebsd-13.1/crypto/openssh/openbsd-compat/ |
| H A D | bsd-getpeereid.c | 33 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cred, &len) < 0) in getpeereid()
|
| /freebsd-13.1/contrib/ofed/librdmacm/ |
| H A D | librspreload.map | 14 getsockopt;
|
| H A D | preload.c | 85 int (*getsockopt)(int socket, int level, int optname, member 407 real.getsockopt = dlsym(RTLD_NEXT, "getsockopt"); in init_preload() 434 rs.getsockopt = dlsym(RTLD_DEFAULT, "rgetsockopt"); in init_preload() 460 ret = sapi->getsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, ¶m, &len); in copysockopts() 467 ret = sapi->getsockopt(sfd, IPPROTO_TCP, TCP_NODELAY, ¶m, &len); in copysockopts() 1052 int getsockopt(int socket, int level, int optname, in getsockopt() function 1058 real.getsockopt(fd, level, optname, optval, optlen); in getsockopt()
|
| /freebsd-13.1/lib/libc/posix1e/ |
| H A D | mac_get.c | 74 return (getsockopt(fd, SOL_SOCKET, SO_PEERLABEL, label, &len)); in mac_get_peer()
|
| /freebsd-13.1/lib/libc/net/ |
| H A D | sctp_sys_calls.c | 94 ret = getsockopt(sd, IPPROTO_SCTP, SCTP_GET_ADDR_LEN, &av, &siz); in sctp_getaddrlen() 386 return (getsockopt(sd, IPPROTO_SCTP, opt, arg, size)); in sctp_opt_info() 406 if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_REMOTE_ADDR_SIZE, in sctp_getpaddrs() 422 if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_PEER_ADDRESSES, in sctp_getpaddrs() 465 if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDR_SIZE, in sctp_getladdrs() 477 if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDRESSES, addrs, in sctp_getladdrs() 627 if (getsockopt(sd, IPPROTO_SCTP, in sctp_getassocid()
|
| /freebsd-13.1/sbin/setkey/ |
| H A D | test-policy.c | 121 if (getsockopt(so, proto, optname, getbuf, &len) < 0) in test()
|
| /freebsd-13.1/contrib/tcp_wrappers/ |
| H A D | fix_options.c | 72 if (getsockopt(fd, ipproto, IP_OPTIONS, (char *) optbuf, &optsize) == 0
|
| /freebsd-13.1/lib/libnetgraph/ |
| H A D | msg.c | 308 if (getsockopt(cs, SOL_SOCKET, SO_RCVBUF, &len, &optlen) == -1 || in NgAllocRecvMsg() 371 if (getsockopt(cs, SOL_SOCKET, SO_RCVBUF, &len, &optlen) == -1 || in NgAllocRecvAsciiMsg()
|
| /freebsd-13.1/usr.sbin/bluetooth/sdpd/ |
| H A D | server.c | 131 if (getsockopt(l2sock, SOL_L2CAP, SO_L2CAP_IMTU, &imtu, &size) < 0) { in server_init() 328 if (getsockopt(cfd,SOL_L2CAP,SO_L2CAP_OMTU,&omtu,&size) < 0) { in server_accept_client() 356 if (getsockopt(cfd, 0, LOCAL_PEERCRED, &cr, &size) < 0) { in server_accept_client()
|
| /freebsd-13.1/usr.sbin/ypserv/ |
| H A D | yp_dnslookup.c | 425 if (getsockopt(rqstp->rq_xprt->xp_fd, SOL_SOCKET, in yp_async_lookup_name() 483 if (getsockopt(rqstp->rq_xprt->xp_fd, SOL_SOCKET, in yp_async_lookup_addr()
|
| /freebsd-13.1/contrib/libpcap/lbl/ |
| H A D | os-sunos4.h | 100 int getsockopt(int, int, int, char *, int *);
|