Home
last modified time | relevance | path

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

/freebsd-14.2/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, ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0) in rpcap_senderror()
H A Dpcap-rpcap.c1236 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_startcapture_remote()
1575 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter()
1641 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_updatefilter_remote()
1898 rpcap_createhdr((struct rpcap_header *) sendbuf, in pcap_setsampling_remote()
1903 sampling_pars = (struct rpcap_sampling *) &sendbuf[sendbufidx]; in pcap_setsampling_remote()
2039 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in rpcap_doauth()
2042 rpauth = (struct rpcap_auth *) &sendbuf[sendbufidx]; in rpcap_doauth()
2059 if (sock_bufferize(auth->username, rpauth->slen1, sendbuf, in rpcap_doauth()
2068 if (sock_bufferize(auth->password, rpauth->slen2, sendbuf, in rpcap_doauth()
2076 if (sock_send(sockctrl, ssl, sendbuf, sendbufidx, errbuf, in rpcap_doauth()
[all …]
/freebsd-14.2/contrib/libpcap/rpcapd/
H A Ddaemon.c1362 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, in daemon_msg_auth_req()
1703 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_findallif_req()
1767 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req()
1901 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_open_req()
2153 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_startcap_req()
2553 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, in daemon_msg_stats_req()
2556 netstats = (struct rpcap_stats *) &sendbuf[sendbufidx]; in daemon_msg_stats_req()
2670 sendbuf = (char *) malloc (sendbufsize); in daemon_thrdatamain()
2671 if (sendbuf == NULL) in daemon_thrdatamain()
2725 rpcap_createhdr((struct rpcap_header *) sendbuf, in daemon_thrdatamain()
[all …]
/freebsd-14.2/tests/sys/netinet/
H A Dudp_dontroute.c59 const char* sendbuf = "Hello, World!"; in main() local
115 ret = sendto(s, sendbuf, strlen(sendbuf), 0, (struct sockaddr*)&dst, in main()
/freebsd-14.2/usr.sbin/bluetooth/btpand/
H A Dchannel.c88 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 Dbnep.c649 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 Dbtpand.h103 uint8_t * sendbuf; member
/freebsd-14.2/contrib/ldns/
H A Dnet.c684 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-14.2/tests/sys/audit/
H A Dnetwork.c50 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()