Lines Matching refs:sendbufidx
151 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog…
1015 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_startcapture_remote() local
1137 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_startcapture_remote()
1145 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote()
1148 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_startcapture_remote()
1177 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) in pcap_startcapture_remote()
1180 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, in pcap_startcapture_remote()
1428 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter() argument
1446 if (sock_bufferize(NULL, sizeof(struct rpcap_filter), NULL, sendbufidx, in pcap_pack_bpffilter()
1454 NULL, sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_pack_bpffilter()
1503 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_updatefilter_remote() local
1506 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in pcap_updatefilter_remote()
1514 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, prog)) in pcap_updatefilter_remote()
1517 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, in pcap_updatefilter_remote()
1718 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_setsampling_remote() local
1743 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_setsampling_remote()
1751 sampling_pars = (struct rpcap_sampling *) &sendbuf[sendbufidx]; in pcap_setsampling_remote()
1754 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_setsampling_remote()
1762 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, in pcap_setsampling_remote()
1893 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in rpcap_sendauth() local
1948 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_sendauth()
1954 rpauth = (struct rpcap_auth *) &sendbuf[sendbufidx]; in rpcap_sendauth()
1957 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_sendauth()
1972 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_BUFFERIZE, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_sendauth()
1981 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_BUFFERIZE, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_sendauth()
1988 if (sock_send(sock, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0) in rpcap_sendauth()
2115 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_open_rpcap() local
2254 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errbuf, PCAP_ERRBUF_SIZE)) in pcap_open_rpcap()
2260 if (sock_bufferize(iface, (int) strlen(iface), sendbuf, &sendbufidx, in pcap_open_rpcap()
2264 if (sock_send(sockctrl, sendbuf, sendbufidx, errbuf, in pcap_open_rpcap()