Home
last modified time | relevance | path

Searched refs:sendbufidx (Results 1 – 3 of 3) sorted by relevance

/external/libpcap/rpcapd/
Ddaemon.c1224 int sendbufidx = 0; // index which keeps the number of bytes currently buffered in daemon_msg_auth_req() local
1357 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in daemon_msg_auth_req()
1364 authreply = (struct rpcap_authreply *) &sendbuf[sendbufidx]; in daemon_msg_auth_req()
1366 if (sock_bufferize(NULL, sizeof(struct rpcap_authreply), NULL, &sendbufidx, in daemon_msg_auth_req()
1378 if (sock_send(pars->sockctrl, pars->ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_auth_req()
1601 int sendbufidx = 0; // index which keeps the number of bytes currently buffered in daemon_msg_findallif_req() local
1694 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errmsgbuf, in daemon_msg_findallif_req()
1706 findalldevs_if = (struct rpcap_findalldevs_if *) &sendbuf[sendbufidx]; in daemon_msg_findallif_req()
1709 &sendbufidx, RPCAP_NETBUF_SIZE, SOCKBUF_CHECKONLY, errmsgbuf, PCAP_ERRBUF_SIZE) == -1) in daemon_msg_findallif_req()
1751 if (sock_bufferize(d->name, lname, sendbuf, &sendbufidx, in daemon_msg_findallif_req()
[all …]
/external/libpcap/
Drpcap-protocol.c86 int sendbufidx = 0; /* index which keeps the number of bytes currently buffered */ in rpcap_senderror() local
96 if (sock_bufferize(NULL, sizeof(struct rpcap_header), NULL, &sendbufidx, in rpcap_senderror()
100 if (sock_bufferize(error, length, sendbuf, &sendbufidx, in rpcap_senderror()
104 if (sock_send(sock, ssl, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE) < 0) in rpcap_senderror()
Dpcap-rpcap.c163 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()
[all …]