• Home
  • Raw
  • Download

Lines Matching refs:sendbuf

91 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog…
703 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_opensource_remote() local
792 rpcap_createhdr((struct rpcap_header *) sendbuf, RPCAP_MSG_OPEN_REQ, 0, (uint32) strlen(iface)); in pcap_opensource_remote()
794 if (sock_bufferize(iface, (int) strlen(iface), sendbuf, &sendbufidx, in pcap_opensource_remote()
798 if (sock_send(sockctrl, sendbuf, sendbufidx, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_opensource_remote()
907 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in pcap_startcapture_remote() local
1038 rpcap_createhdr((struct rpcap_header *) sendbuf, RPCAP_MSG_STARTCAP_REQ, 0, in pcap_startcapture_remote()
1042 startcapreq = (struct rpcap_startcapreq *) &sendbuf[sendbufidx]; in pcap_startcapture_remote()
1074 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, &fp->fcode)) in pcap_startcapture_remote()
1077 if (sock_send(md->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_startcapture_remote()
1322 static int pcap_pack_bpffilter(pcap_t *fp, char *sendbuf, int *sendbufidx, struct bpf_program *prog) in pcap_pack_bpffilter() argument
1339 filter = (struct rpcap_filter *) sendbuf; in pcap_pack_bpffilter()
1391 char sendbuf[RPCAP_NETBUF_SIZE];/* temporary buffer in which data to be sent is buffered */ in pcap_updatefilter_remote() local
1403 rpcap_createhdr((struct rpcap_header *) sendbuf, RPCAP_MSG_UPDATEFILTER_REQ, 0, in pcap_updatefilter_remote()
1406 if (pcap_pack_bpffilter(fp, &sendbuf[sendbufidx], &sendbufidx, prog)) in pcap_updatefilter_remote()
1409 if (sock_send(md->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_updatefilter_remote()
1604 char sendbuf[RPCAP_NETBUF_SIZE];/* temporary buffer in which data to be sent is buffered */ in pcap_setsampling_remote() local
1620 …rpcap_createhdr((struct rpcap_header *) sendbuf, RPCAP_MSG_SETSAMPLING_REQ, 0, sizeof(struct rpcap… in pcap_setsampling_remote()
1623 sampling_pars = (struct rpcap_sampling *) &sendbuf[sendbufidx]; in pcap_setsampling_remote()
1634 if (sock_send(md->rmt_sockctrl, sendbuf, sendbufidx, p->errbuf, PCAP_ERRBUF_SIZE)) in pcap_setsampling_remote()
1704 char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data to be sent is buffered */ in rpcap_senderror() local
1713 rpcap_createhdr((struct rpcap_header *) sendbuf, RPCAP_MSG_ERROR, errcode, length); in rpcap_senderror()
1719 if (sock_bufferize(error, length, sendbuf, &sendbufidx, in rpcap_senderror()
1723 if (sock_send(sock, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_senderror()
1749 …char sendbuf[RPCAP_NETBUF_SIZE]; /* temporary buffer in which data that has to be sent is buffered… in rpcap_sendauth() local
1789 rpcap_createhdr((struct rpcap_header *) sendbuf, RPCAP_MSG_AUTH_REQ, 0, length); in rpcap_sendauth()
1791 rpauth = (struct rpcap_auth *) &sendbuf[sendbufidx]; in rpcap_sendauth()
1809 if (sock_bufferize(auth->username, rpauth->slen1, sendbuf, in rpcap_sendauth()
1818 if (sock_bufferize(auth->password, rpauth->slen2, sendbuf, in rpcap_sendauth()
1826 if (sock_send(sock, sendbuf, sendbufidx, errbuf, PCAP_ERRBUF_SIZE)) in rpcap_sendauth()