Home
last modified time | relevance | path

Searched refs:sendbuf (Results 1 – 9 of 9) sorted by relevance

/freebsd-12.1/contrib/ntp/lib/isc/tests/
H A Dsocket_test.c89 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; in ATF_TC_BODY() local
119 strcpy(sendbuf, "Hello"); in ATF_TC_BODY()
120 r.base = (void *) sendbuf; in ATF_TC_BODY()
121 r.length = strlen(sendbuf) + 1; in ATF_TC_BODY()
160 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; in ATF_TC_BODY() local
193 strcpy(sendbuf, "Hello"); in ATF_TC_BODY()
194 r.base = (void *) sendbuf; in ATF_TC_BODY()
195 r.length = strlen(sendbuf) + 1; in ATF_TC_BODY()
205 strcpy(sendbuf, "World"); in ATF_TC_BODY()
206 r.base = (void *) sendbuf; in ATF_TC_BODY()
[all …]
/freebsd-12.1/contrib/libpcap/
H A Drpcap-protocol.c83 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in rpcap_senderror() local
92 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, RPCAP_MSG_ERROR, errcode, length); in rpcap_senderror()
98 if (sock_bufferize(error, length, sendbuf, &sendbufidx, in rpcap_senderror()
102 if (sock_send(sock, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0) in rpcap_senderror()
H A Dpcap-rpcap.c1139 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_startcapture_remote()
1144 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote()
1443 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter()
1509 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_updatefilter_remote()
1745 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_setsampling_remote()
1750 sampling_pars = (struct rpcap_sampling *) &sendbuf[sendbufidx]; in pcap_setsampling_remote()
1950 rpcap_createhdr((struct rpcap_header *) sendbuf, *ver, in rpcap_sendauth()
1953 rpauth = (struct rpcap_auth *) &sendbuf[sendbufidx]; in rpcap_sendauth()
1970 if (sock_bufferize(auth->username, rpauth->slen1, sendbuf, in rpcap_sendauth()
1979 if (sock_bufferize(auth->password, rpauth->slen2, sendbuf, in rpcap_sendauth()
[all …]
/freebsd-12.1/tests/sys/netinet/
H A Dudp_dontroute.c61 const char* sendbuf = "Hello, World!"; in main() local
117 ret = sendto(s, sendbuf, strlen(sendbuf), 0, (struct sockaddr*)&dst, in main()
/freebsd-12.1/contrib/ldns/
H A Dnet.c646 uint8_t *sendbuf; local
650 sendbuf = LDNS_XMALLOC(uint8_t, ldns_buffer_position(qbin) + 2);
651 if(!sendbuf) return 0;
652 ldns_write_uint16(sendbuf, ldns_buffer_position(qbin));
653 memcpy(sendbuf + 2, ldns_buffer_begin(qbin), ldns_buffer_position(qbin));
655 bytes = sendto(sockfd, (void*)sendbuf,
658 LDNS_FREE(sendbuf);
/freebsd-12.1/usr.sbin/bluetooth/btpand/
H A Dchannel.c89 chan->sendbuf = malloc(chan->mtu); in channel_open()
90 if (chan->sendbuf == NULL) { in channel_open()
161 free(chan->sendbuf); in channel_free()
H A Dbnep.c650 p = chan->sendbuf; in bnep_send()
682 if (p + eh->len > chan->sendbuf + chan->mtu) in bnep_send()
694 iov[0].iov_base = chan->sendbuf; in bnep_send()
695 iov[0].iov_len = (p - chan->sendbuf); in bnep_send()
H A Dbtpand.h104 uint8_t * sendbuf; member
/freebsd-12.1/tests/sys/audit/
H A Dnetwork.c52 static struct msghdr sendbuf, recvbuf; variable
860 init_msghdr(&sendbuf, &io1, &server); in ATF_TC_BODY()
867 ATF_REQUIRE((data_bytes = sendmsg(sockfd2, &sendbuf, 0)) != -1); in ATF_TC_BODY()
922 init_msghdr(&sendbuf, &io1, &server); in ATF_TC_BODY()
931 ATF_REQUIRE(sendmsg(sockfd2, &sendbuf, 0) != -1); in ATF_TC_BODY()