• Home
  • Raw
  • Download

Lines Matching refs:sendbufidx

163 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog…
1062 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_startcapture_remote() local
1188 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_startcapture_remote()
1196 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote()
1199 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_startcapture_remote()
1228 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) in pcap_startcapture_remote()
1231 if (sock_send(pr->rmt_sockctrl, pr->ctrl_ssl, sendbuf, sendbufidx, fp->errbuf, in pcap_startcapture_remote()
1509 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter() argument
1527 if (sock_bufferize(NULL, sizeof(struct rpcap_filter), NULL, sendbufidx, in pcap_pack_bpffilter()
1535 NULL, sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_pack_bpffilter()
1584 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_updatefilter_remote() local
1587 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in pcap_updatefilter_remote()
1595 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, prog)) in pcap_updatefilter_remote()
1598 if (sock_send(pr->rmt_sockctrl, pr->ctrl_ssl, sendbuf, sendbufidx, fp->errbuf, in pcap_updatefilter_remote()
1814 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_setsampling_remote() local
1839 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_setsampling_remote()
1847 sampling_pars = (struct rpcap_sampling *) &sendbuf[sendbufidx]; in pcap_setsampling_remote()
1850 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_setsampling_remote()
1858 if (sock_send(pr->rmt_sockctrl, pr->ctrl_ssl, sendbuf, sendbufidx, fp->errbuf, in pcap_setsampling_remote()
1917 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in rpcap_doauth() local
1973 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_doauth()
1979 rpauth = (struct rpcap_auth *) &sendbuf[sendbufidx]; in rpcap_doauth()
1982 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_doauth()
1997 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_BUFFERIZE, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_doauth()
2006 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_BUFFERIZE, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_doauth()
2013 if (sock_send(sockctrl, ssl, sendbuf, sendbufidx, errbuf, in rpcap_doauth()
2320 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in pcap_open_rpcap() local
2378 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errbuf, PCAP_ERRBUF_SIZE)) in pcap_open_rpcap()
2384 if (sock_bufferize(iface, (int) strlen(iface), sendbuf, &sendbufidx, in pcap_open_rpcap()
2388 if (sock_send(sockctrl, ssl, sendbuf, sendbufidx, errbuf, in pcap_open_rpcap()