| /freebsd-13.1/contrib/ntp/lib/isc/tests/ |
| H A D | socket_test.c | 89 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-13.1/contrib/libpcap/ |
| H A D | rpcap-protocol.c | 83 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 D | pcap-rpcap.c | 1141 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_startcapture_remote() 1445 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter() 1511 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_updatefilter_remote() 1762 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_setsampling_remote() 1767 sampling_pars = (struct rpcap_sampling *) &sendbuf[sendbufidx]; in pcap_setsampling_remote() 1896 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in rpcap_doauth() 1899 rpauth = (struct rpcap_auth *) &sendbuf[sendbufidx]; in rpcap_doauth() 1916 if (sock_bufferize(auth->username, rpauth->slen1, sendbuf, in rpcap_doauth() 1925 if (sock_bufferize(auth->password, rpauth->slen2, sendbuf, in rpcap_doauth() 1933 if (sock_send(sockctrl, sendbuf, sendbufidx, errbuf, in rpcap_doauth() [all …]
|
| /freebsd-13.1/contrib/libpcap/rpcapd/ |
| H A D | daemon.c | 1108 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in daemon_msg_auth_req() 1405 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_findallif_req() 1450 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req() 1584 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_open_req() 1810 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_startcap_req() 2189 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_stats_req() 2192 netstats = (struct rpcap_stats *) &sendbuf[sendbufidx]; in daemon_msg_stats_req() 2292 sendbuf = (char *) malloc (sendbufsize); in daemon_thrdatamain() 2293 if (sendbuf == NULL) in daemon_thrdatamain() 2347 rpcap_createhdr((struct rpcap_header *) sendbuf, in daemon_thrdatamain() [all …]
|
| /freebsd-13.1/tests/sys/netinet/ |
| H A D | udp_dontroute.c | 61 const char* sendbuf = "Hello, World!"; in main() local 117 ret = sendto(s, sendbuf, strlen(sendbuf), 0, (struct sockaddr*)&dst, in main()
|
| /freebsd-13.1/usr.sbin/bluetooth/btpand/ |
| H A D | channel.c | 89 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 D | bnep.c | 650 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 D | btpand.h | 104 uint8_t * sendbuf; member
|
| /freebsd-13.1/contrib/ldns/ |
| H A D | net.c | 646 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-13.1/tests/sys/audit/ |
| H A D | network.c | 52 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()
|