/freebsd/contrib/libpcap/rpcapd/ |
H A D | daemon.c | 1224 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_auth_req() local 1362 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in daemon_msg_auth_req() 1365 authreply = (struct rpcap_authreply *) &sendbuf[sendbufidx]; in daemon_msg_auth_req() 1384 if (sock_send(pars->sockctrl, pars->ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_auth_req() 1606 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_findallif_req() local 1703 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_findallif_req() 1762 if (sock_bufferize(&findalldevs_if, sizeof(struct rpcap_findalldevs_if), sendbuf, in daemon_msg_findallif_req() 1767 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req() 1772 if (sock_bufferize(d->description, ldescr, sendbuf, &sendbufidx, in daemon_msg_findallif_req() 1791 sockaddr = (struct rpcap_sockaddr *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req() [all …]
|
/freebsd/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, ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0) in rpcap_senderror()
|
H A D | pcap-rpcap.c | 166 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog… 1086 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_startcapture_remote() local 1236 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_startcapture_remote() 1241 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote() 1272 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) in pcap_startcapture_remote() 1275 if (sock_send(pr->rmt_sockctrl, pr->ctrl_ssl, sendbuf, sendbufidx, fp->errbuf, in pcap_startcapture_remote() 1559 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter() argument 1575 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter() 1633 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_updatefilter_remote() local 1641 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_updatefilter_remote() [all …]
|
/freebsd/tests/sys/netinet/ |
H A D | udp_dontroute.c | 59 const char* sendbuf = "Hello, World!"; in main() local 115 ret = sendto(s, sendbuf, strlen(sendbuf), 0, (struct sockaddr*)&dst, in main()
|
/freebsd/contrib/ldns/ |
H A D | net.c | 684 uint8_t *sendbuf; local 688 sendbuf = LDNS_XMALLOC(uint8_t, ldns_buffer_position(qbin) + 2); 689 if(!sendbuf) return 0; 690 ldns_write_uint16(sendbuf, ldns_buffer_position(qbin)); 691 memcpy(sendbuf + 2, ldns_buffer_begin(qbin), ldns_buffer_position(qbin)); 693 bytes = sendto(sockfd, (void*)sendbuf, 696 LDNS_FREE(sendbuf);
|
/freebsd/usr.sbin/bluetooth/btpand/ |
H A D | channel.c | 88 chan->sendbuf = malloc(chan->mtu); in channel_open() 89 if (chan->sendbuf == NULL) { in channel_open() 160 free(chan->sendbuf); in channel_free()
|
H A D | bnep.c | 649 p = chan->sendbuf; in bnep_send() 681 if (p + eh->len > chan->sendbuf + chan->mtu) in bnep_send() 693 iov[0].iov_base = chan->sendbuf; in bnep_send() 694 iov[0].iov_len = (p - chan->sendbuf); in bnep_send()
|
H A D | btpand.h | 103 uint8_t * sendbuf; member
|
/freebsd/tests/sys/kern/ |
H A D | unix_seqpacket_test.c | 1149 char *sendbuf; member 1181 ATF_REQUIRE(send(params->sock, ¶ms->sendbuf[off], len, in sending_thread() 1208 ATF_REQUIRE((params.sendbuf = malloc(RANDOM_TESTSIZE)) != NULL); in ATF_TC_BODY() 1210 ((long *)params.sendbuf)[i] = nrand48(¶ms.seed[0]); in ATF_TC_BODY() 1270 ATF_REQUIRE_MSG(0 == memcmp(params.sendbuf + off, recvbuf, len), in ATF_TC_BODY() 1282 free(params.sendbuf); in ATF_TC_BODY()
|
/freebsd/tests/sys/audit/ |
H A D | network.c | 50 static struct msghdr sendbuf, recvbuf; variable 858 init_msghdr(&sendbuf, &io1, &server); in ATF_TC_BODY() 865 ATF_REQUIRE((data_bytes = sendmsg(sockfd2, &sendbuf, 0)) != -1); in ATF_TC_BODY() 920 init_msghdr(&sendbuf, &io1, &server); in ATF_TC_BODY() 929 ATF_REQUIRE(sendmsg(sockfd2, &sendbuf, 0) != -1); in ATF_TC_BODY()
|