Lines Matching refs:maxdgram
94 unsigned long maxdgram; in ATF_TC_BODY() local
103 ATF_REQUIRE(sysctlbyname("net.local.dgram.maxdgram", &maxdgram, in ATF_TC_BODY()
106 buf = malloc(maxdgram + 1); in ATF_TC_BODY()
117 ATF_REQUIRE(send(fd[0], buf, maxdgram + 1, 0) == -1); in ATF_TC_BODY()
121 ATF_REQUIRE(send(fd[0], buf, maxdgram, 0) == (ssize_t)maxdgram); in ATF_TC_BODY()
124 ATF_REQUIRE(recv(fd[1], buf, maxdgram, MSG_PEEK) == (ssize_t)maxdgram); in ATF_TC_BODY()
130 iov[0].iov_len = maxdgram; in ATF_TC_BODY()
131 ATF_REQUIRE(recvmsg(fd[1], &msg, 0) == (ssize_t)maxdgram); in ATF_TC_BODY()
135 ATF_REQUIRE(send(fd[0], buf, maxdgram, 0) == (ssize_t)maxdgram); in ATF_TC_BODY()
136 iov[0].iov_len = maxdgram / 2; in ATF_TC_BODY()
137 ATF_REQUIRE(recvmsg(fd[1], &msg, 0) == (ssize_t)maxdgram / 2); in ATF_TC_BODY()
144 ATF_REQUIRE(recv(fd[1], buf, maxdgram, 0) == -1); in ATF_TC_BODY()
149 ATF_REQUIRE(recv(fd[1], buf, maxdgram, MSG_DONTWAIT) == -1); in ATF_TC_BODY()
154 ATF_REQUIRE(recv(fd[1], buf, maxdgram, 0) == -1); in ATF_TC_BODY()
158 fill(fd[0], buf, maxdgram); in ATF_TC_BODY()
159 ATF_REQUIRE(send(fd[0], buf, maxdgram, 0) == -1); in ATF_TC_BODY()
167 ATF_REQUIRE(send(fd[0], buf, maxdgram, 0) == -1); in ATF_TC_BODY()
172 ATF_REQUIRE(send(fd[0], buf, maxdgram, 0) == -1); in ATF_TC_BODY()