Home
last modified time | relevance | path

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

/external/libpcap/
Dpcap-new.c89 SOCKET sockctrl; /* socket descriptor of the control connection */ in pcap_findalldevs_ex() local
357 sockctrl = rpcap_remoteact_getsock(host, &active, errbuf); in pcap_findalldevs_ex()
358 if (sockctrl == INVALID_SOCKET) in pcap_findalldevs_ex()
384 if ((sockctrl = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, errbuf, PCAP_ERRBUF_SIZE)) == -1) in pcap_findalldevs_ex()
391 if (rpcap_sendauth(sockctrl, auth, errbuf) == -1) in pcap_findalldevs_ex()
393 sock_close(sockctrl, NULL, 0); in pcap_findalldevs_ex()
401 …if (sock_send(sockctrl, (char *)&header, sizeof(struct rpcap_header), errbuf, PCAP_ERRBUF_SIZE) ==… in pcap_findalldevs_ex()
404 …if (sock_recv(sockctrl, (char *)&header, sizeof(struct rpcap_header), SOCK_RECEIVEALL_YES, errbuf,… in pcap_findalldevs_ex()
408 retval = rpcap_checkmsg(errbuf, sockctrl, &header, RPCAP_MSG_FINDALLIF_REPLY, RPCAP_MSG_ERROR, 0); in pcap_findalldevs_ex()
430 sock_close(sockctrl, NULL, 0); in pcap_findalldevs_ex()
[all …]
Dpcap-rpcap.c432 if (temp->sockctrl == md->rmt_sockctrl) in pcap_cleanup_remote()
713 SOCKET sockctrl = 0; /* socket descriptor of the control connection */ in pcap_opensource_remote() local
747 sockctrl = rpcap_remoteact_getsock(host, &active, fp->errbuf); in pcap_opensource_remote()
748 if (sockctrl == INVALID_SOCKET) in pcap_opensource_remote()
774 …if ((sockctrl = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, fp->errbuf, PCAP_ERRBUF_SIZE)) == INVALID_… in pcap_opensource_remote()
780 if (rpcap_sendauth(sockctrl, auth, fp->errbuf) == -1) in pcap_opensource_remote()
798 if (sock_send(sockctrl, sendbuf, sendbufidx, fp->errbuf, PCAP_ERRBUF_SIZE)) in pcap_opensource_remote()
802 …if (sock_recv(sockctrl, (char *)&header, sizeof(struct rpcap_header), SOCK_RECEIVEALL_YES, fp->err… in pcap_opensource_remote()
806 retval = rpcap_checkmsg(fp->errbuf, sockctrl, &header, RPCAP_MSG_OPEN_REPLY, RPCAP_MSG_ERROR, 0); in pcap_opensource_remote()
829 nread = sock_recv(sockctrl, (char *)&openreply, in pcap_opensource_remote()
[all …]
Dpcap-rpcap.h137 SOCKET sockctrl; member