Searched refs:getsockopt (Results 1 - 25 of 94) sorted by relevance

1234

/freebsd-11-stable/tools/regression/netinet6/icmp6_filter/
H A Dicmp6_filter.c71 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0)
72 err(-1, "1: getsockopt(ICMP6_FILTER)");
74 errx(-1, "1: getsockopt(ICMP6_FILTER) - default not passall");
88 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0)
89 err(-1, "3: getsockopt(ICMP6_FILTER)");
91 errx(-1, "3: getsockopt(ICMP6_FILTER) - not passall");
105 if (getsockopt(s, IPPROTO_ICMPV6, ICMP6_FILTER, &ic6f, &len) < 0)
106 err(-1, "5: getsockopt(ICMP6_FILTER)");
108 errx(-1, "5: getsockopt(ICMP6_FILTER) - not blockall");
122 if (getsockopt(
[all...]
/freebsd-11-stable/tools/regression/sockets/accf_data_attach/
H A Daccf_data_attach.c95 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len);
97 errx(-1, "not ok 2 - getsockopt() after socket() succeeded");
99 errx(-1, "not ok 2 - getsockopt() after socket() failed with "
101 printf("ok 2 - getsockopt\n");
116 * Step 3: After bind(). getsockopt() should return EINVAL, since no
120 ret = getsockopt(lso, SOL_SOCKET, SO_ACCEPTFILTER, &afa, &len);
122 errx(-1, "not ok 4 - getsockopt() after bind() succeeded");
124 errx(-1, "not ok 4 - getsockopt() after bind() failed with %d (%s)",
126 printf("ok 4 - getsockopt\n");
144 ret = getsockopt(ls
[all...]
/freebsd-11-stable/crypto/heimdal/appl/ftp/common/
H A Dsockbuf.c56 if(getsockopt(fd, SOL_SOCKET, optname, (void *)&curr, &optlen) == 0) {
/freebsd-11-stable/lib/libc/posix1e/
H A Dmac_get.c72 return (getsockopt(fd, SOL_SOCKET, SO_PEERLABEL, label, &len));
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dbsd-getpeereid.c33 if (getsockopt(s, SOL_SOCKET, SO_PEERCRED, &cred, &len) < 0)
/freebsd-11-stable/tools/regression/sockets/unix_cmsg/
H A Dt_peercred.c105 if (getsockopt(fd, 0, LOCAL_PEERCRED, &xucred, &len) < 0) {
106 uc_logmsg("getsockopt(LOCAL_PEERCRED)");
131 if (getsockopt(fd2, 0, LOCAL_PEERCRED, &xucred, &len) < 0) {
132 uc_logmsg("getsockopt(LOCAL_PEERCRED)");
/freebsd-11-stable/tools/regression/netinet/ipsockopt/
H A Dipsockopt.c51 * getsockopt()/setsockopt() APIs. It does not currently test that the
124 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0)
125 err(-1, "test_ip_options(%s): initial getsockopt()",
129 errx(-1, "test_ip_options(%s): initial getsockopt() returned "
154 if (getsockopt(sock, IPPROTO_IP, IP_OPTIONS, test_options, &len) < 0)
155 err(-1, "test_ip_options(%s): getsockopt() after set",
162 errx(-1, "test_ip_options(%s): getsockopt() after set "
170 errx(-1, "test_ip_options(%s): getsockopt() after set didn't "
177 errx(-1, "test_ip_options(%s): getsockopt() after set "
194 if (getsockopt(soc
[all...]
/freebsd-11-stable/crypto/heimdal/lib/roken/
H A Dsocket_wrapper.h89 #ifdef getsockopt
90 #undef getsockopt macro
92 #define getsockopt(s,level,optname,optval,optlen) swrap_getsockopt(s,level,optname,optval,optlen) macro
/freebsd-11-stable/tests/sys/kern/
H A Dunix_seqpacket_test.c553 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_SNDBUF, &xs, &sl));
554 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_RCVBUF, &xr, &sl));
561 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_SNDBUF, &xs, &sl));
562 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_RCVBUF, &xr, &sl));
569 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_SNDBUF, &xs, &sl));
570 ATF_CHECK_EQ(0, getsockopt(s, SOL_SOCKET, SO_RCVBUF, &xr, &sl));
595 ATF_CHECK_EQ(0, getsockopt(sv[0], SOL_SOCKET, SO_SNDBUF, &ls, &sl));
596 ATF_CHECK_EQ(0, getsockopt(sv[0], SOL_SOCKET, SO_RCVBUF, &lr, &sl));
597 ATF_CHECK_EQ(0, getsockopt(sv[1], SOL_SOCKET, SO_SNDBUF, &rs, &sl));
598 ATF_CHECK_EQ(0, getsockopt(s
[all...]
/freebsd-11-stable/usr.sbin/bluetooth/btpand/
H A Dserver.c175 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) {
187 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &n, &len) == -1) {
199 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) {
211 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &n, &len) == -1) {
H A Dclient.c97 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_IMTU, &mru, &len) == -1) {
107 if (getsockopt(fd, SOL_SOCKET, SO_RCVBUF, &n, &len) == -1) {
118 if (getsockopt(fd, SOL_L2CAP, SO_L2CAP_OMTU, &mtu, &len) == -1) {
128 if (getsockopt(fd, SOL_SOCKET, SO_SNDBUF, &n, &len) == -1) {
/freebsd-11-stable/lib/libsdp/
H A Dsession.c82 if (getsockopt(ss->s, SOL_L2CAP, SO_L2CAP_OMTU, &ss->omtu, &size) < 0) {
93 if (getsockopt(ss->s, SOL_L2CAP, SO_L2CAP_IMTU, &ss->imtu, &size) < 0) {
/freebsd-11-stable/contrib/tcp_wrappers/
H A Dfix_options.c72 if (getsockopt(fd, ipproto, IP_OPTIONS, (char *) optbuf, &optsize) == 0
76 * Horror! 4.[34] BSD getsockopt() prepends the first-hop destination
79 * other IP options. Solaris 2.x getsockopt() does produce output for
/freebsd-11-stable/sbin/setkey/
H A Dtest-policy.c119 if (getsockopt(so, proto, optname, getbuf, &len) < 0)
120 perror("getsockopt");
/freebsd-11-stable/tools/regression/netinet/msocket/
H A Dmsocket.c96 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen);
98 err(-1, "FAIL: getsockopt(%s, IPPROTO_IP, %s)",
101 warnx("WARN: getsockopt(%s, IPPROTO_IP, %s) returned 0",
104 errx(-1, "FAIL: getsockopt(%s, IPPROTO_IP, %s) default is "
121 ret = getsockopt(sock, IPPROTO_IP, optname, &uc, &socklen);
123 err(-1, "FAIL: getsockopt(%s, IPPROTO_IP, %s)",
126 warnx("WARN: getsockopt(%s, IPPROTO_IP, %s) returned 0",
129 errx(-1, "FAIL: getsockopt(%s, IPPROTO_IP, %s) set value is "
152 ret = getsockopt(sock, IPPROTO_IP, optname, &ia, &socklen);
154 err(-1, "FAIL: getsockopt(
[all...]
/freebsd-11-stable/crypto/openssl/crypto/bio/
H A Dbss_dgram.c285 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
287 perror("getsockopt");
294 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
296 perror("getsockopt");
625 getsockopt(b->num, IPPROTO_IP, IP_MTU, (void *)&sockopt_val,
640 getsockopt(b->num, IPPROTO_IPV6, IPV6_MTU,
783 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
785 perror("getsockopt");
794 if (getsockopt(b->num, SOL_SOCKET, SO_RCVTIMEO,
796 perror("getsockopt");
[all...]
/freebsd-11-stable/sys/kern/
H A Dcapabilities.conf304 ## XXXRW: getsockopt(2) may need more attention.
307 getsockopt
/freebsd-11-stable/sys/compat/freebsd32/
H A Dcapabilities.conf138 getsockopt
/freebsd-11-stable/bin/date/
H A Dnetdate.c142 if (!getsockopt(s,
/freebsd-11-stable/contrib/gdb/gdb/
H A Dser-tcp.c168 res = getsockopt (scb->fd, SOL_SOCKET, SO_ERROR, &err, &len);
/freebsd-11-stable/contrib/libpcap/lbl/
H A Dos-sunos4.h100 int getsockopt(int, int, int, char *, int *);
/freebsd-11-stable/contrib/tcpdump/lbl/
H A Dos-sunos4.h101 int getsockopt(int, int, int, char *, int *);
/freebsd-11-stable/contrib/ofed/librdmacm/examples/
H A Dcommon.h64 use_rs ? rgetsockopt(s,l,n,v,ol) : getsockopt(s,l,n,v,ol)
/freebsd-11-stable/usr.sbin/ppp/
H A Dtcp.c179 if (getsockopt(p->fd, SOL_SOCKET, SO_TYPE, &type, &sz) == -1) {
/freebsd-11-stable/usr.sbin/rpc.ypupdated/
H A Dypupdated_main.c222 if (getsockopt(0, SOL_SOCKET, SO_TYPE,

Completed in 221 milliseconds

1234