Home
last modified time | relevance | path

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

/freebsd-12-stable/contrib/libpcap/rpcapd/
Ddaemon.c970 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/
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()
Dpcap-rpcap.c151 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/
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-stable/contrib/ldns/
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-stable/usr.sbin/bluetooth/btpand/
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()
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()
Dbtpand.h104 uint8_t * sendbuf; member
/freebsd-12-stable/tests/sys/audit/
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()