| /freebsd-12-stable/contrib/libpcap/rpcapd/ |
| D | daemon.c | 970 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_auth_req() local 1108 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in daemon_msg_auth_req() 1111 authreply = (struct rpcap_authreply *) &sendbuf[sendbufidx]; in daemon_msg_auth_req() 1125 if (sock_send(pars->sockctrl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_auth_req() 1332 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered in daemon_msg_findallif_req() local 1405 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_findallif_req() 1413 findalldevs_if = (struct rpcap_findalldevs_if *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req() 1450 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req() 1455 if (sock_bufferize(d->description, ldescr, sendbuf, &sendbufidx, in daemon_msg_findallif_req() 1474 sockaddr = (struct rpcap_sockaddr *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req() [all …]
|
| /freebsd-12-stable/contrib/libpcap/ |
| 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()
|
| D | pcap-rpcap.c | 151 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog… 1015 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_startcapture_remote() local 1141 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_startcapture_remote() 1146 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote() 1178 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) in pcap_startcapture_remote() 1181 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, in pcap_startcapture_remote() 1429 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter() argument 1445 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter() 1503 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_updatefilter_remote() local 1511 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_updatefilter_remote() [all …]
|
| /freebsd-12-stable/tests/sys/netinet/ |
| 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-12-stable/contrib/ldns/ |
| 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-12-stable/usr.sbin/bluetooth/btpand/ |
| 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()
|
| 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()
|
| D | btpand.h | 104 uint8_t * sendbuf; member
|
| /freebsd-12-stable/tests/sys/audit/ |
| 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()
|