/freebsd-11-stable/contrib/libpcap/ |
H A D | rpcap-protocol.c | 83 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ local 92 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, RPCAP_MSG_ERROR, errcode, length); 98 if (sock_bufferize(error, length, sendbuf, &sendbufidx, 102 if (sock_send(sock, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0)
|
H A 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 */ local 1141 rpcap_createhdr((struct rpcap_header *) sendbuf, 1146 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; 1178 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) 1181 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, 1414 * This function serializes the filter into the sending buffer ('sendbuf', 1420 * \param sendbuf: the buffer on which the serialized data has to copied. 1429 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) argument 1445 filter = (struct rpcap_filter *) sendbuf; 1503 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ local 1733 char sendbuf[RPCAP_NETBUF_SIZE];/* temporary buffer in which data to be sent is buffered */ local 1836 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data that has to be sent is buffered */ local 2196 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ local [all...] |
/freebsd-11-stable/contrib/ntp/lib/isc/tests/ |
H A D | socket_test.c | 89 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; local 119 strcpy(sendbuf, "Hello"); 120 r.base = (void *) sendbuf; 121 r.length = strlen(sendbuf) + 1; 160 char sendbuf[BUFSIZ], recvbuf[BUFSIZ]; local 193 strcpy(sendbuf, "Hello"); 194 r.base = (void *) sendbuf; 195 r.length = strlen(sendbuf) + 1; 205 strcpy(sendbuf, "World"); 206 r.base = (void *) sendbuf; [all...] |
/freebsd-11-stable/tests/sys/netinet/ |
H A D | udp_dontroute.c | 61 const char* sendbuf = "Hello, World!"; local 117 ret = sendto(s, sendbuf, strlen(sendbuf), 0, (struct sockaddr*)&dst,
|
/freebsd-11-stable/contrib/libpcap/rpcapd/ |
H A D | daemon.c | 970 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered local 1108 rpcap_createhdr((struct rpcap_header *) sendbuf, 0, 1111 authreply = (struct rpcap_authreply *) &sendbuf[sendbufidx]; 1125 if (sock_send(pars->sockctrl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) == -1) 1332 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered local 1405 rpcap_createhdr((struct rpcap_header *) sendbuf, ver, 1413 findalldevs_if = (struct rpcap_findalldevs_if *) &sendbuf[sendbufidx]; 1450 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, 1455 if (sock_bufferize(d->description, ldescr, sendbuf, &sendbufidx, 1474 sockaddr = (struct rpcap_sockaddr *) &sendbuf[sendbufid 1542 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered local 1640 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered local 2174 char sendbuf[RPCAP_NETBUF_SIZE]; // temporary buffer in which data to be sent is buffered local 2251 char *sendbuf; // temporary buffer in which data to be sent is buffered local [all...] |
/freebsd-11-stable/usr.sbin/bluetooth/btpand/ |
H A D | channel.c | 89 chan->sendbuf = malloc(chan->mtu); 90 if (chan->sendbuf == NULL) { 91 log_err("Could not malloc channel sendbuf: %m"); 161 free(chan->sendbuf);
|
H A D | bnep.c | 650 p = chan->sendbuf; 682 if (p + eh->len > chan->sendbuf + chan->mtu) 694 iov[0].iov_base = chan->sendbuf; 695 iov[0].iov_len = (p - chan->sendbuf);
|
H A D | btpand.h | 104 uint8_t * sendbuf; member in struct:channel
|
/freebsd-11-stable/contrib/ldns/ |
H A D | net.c | 651 uint8_t *sendbuf; local 655 sendbuf = LDNS_XMALLOC(uint8_t, ldns_buffer_position(qbin) + 2); 656 if(!sendbuf) return 0; 657 ldns_write_uint16(sendbuf, ldns_buffer_position(qbin)); 658 memcpy(sendbuf + 2, ldns_buffer_begin(qbin), ldns_buffer_position(qbin)); 660 bytes = sendto(sockfd, (void*)sendbuf, 663 LDNS_FREE(sendbuf);
|