Searched refs:sendbufidx (Results 1 – 3 of 3) sorted by relevance
| /freebsd-12-stable/contrib/libpcap/rpcapd/ |
| D | daemon.c | 971 int sendbufidx = 0; // index which keeps the number of bytes currently buffered in daemon_msg_auth_req() local 1104 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in daemon_msg_auth_req() 1111 authreply = (struct rpcap_authreply *) &sendbuf[sendbufidx]; in daemon_msg_auth_req() 1113 if (sock_bufferize(NULL, sizeof(struct rpcap_authreply), NULL, &sendbufidx, in daemon_msg_auth_req() 1125 if (sock_send(pars->sockctrl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_auth_req() 1333 int sendbufidx = 0; // index which keeps the number of bytes currently buffered in daemon_msg_findallif_req() local 1401 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errmsgbuf, in daemon_msg_findallif_req() 1413 findalldevs_if = (struct rpcap_findalldevs_if *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req() 1416 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errmsgbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_findallif_req() 1450 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req() [all …]
|
| /freebsd-12-stable/contrib/libpcap/ |
| D | rpcap-protocol.c | 84 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in rpcap_senderror() local 94 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, 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… 1016 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_startcapture_remote() local 1138 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_startcapture_remote() 1146 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote() 1149 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) 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 1447 if (sock_bufferize(NULL, sizeof(struct rpcap_filter), NULL, sendbufidx, in pcap_pack_bpffilter() 1455 NULL, sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_pack_bpffilter() [all …]
|