Lines Matching refs:rmt_sockctrl

112 	SOCKET rmt_sockctrl;		/* socket ID of the socket used for the control connection */  member
700 if (temp->sockctrl == pr->rmt_sockctrl) in pcap_cleanup_rpcap()
718 (void)sock_send(pr->rmt_sockctrl, (char *)&header, in pcap_cleanup_rpcap()
731 if (sock_send(pr->rmt_sockctrl, (char *)&header, in pcap_cleanup_rpcap()
739 if (rpcap_process_msg_header(pr->rmt_sockctrl, in pcap_cleanup_rpcap()
743 (void)rpcap_discard(pr->rmt_sockctrl, in pcap_cleanup_rpcap()
755 if ((!active) && (pr->rmt_sockctrl)) in pcap_cleanup_rpcap()
756 sock_close(pr->rmt_sockctrl, NULL, 0); in pcap_cleanup_rpcap()
758 pr->rmt_sockctrl = 0; in pcap_cleanup_rpcap()
881 if (sock_send(pr->rmt_sockctrl, (char *)&header, in rpcap_stats_rpcap()
886 if (rpcap_process_msg_header(pr->rmt_sockctrl, pr->protocol_version, in rpcap_stats_rpcap()
893 if (rpcap_recv(pr->rmt_sockctrl, (char *)&netstats, in rpcap_stats_rpcap()
910 if (rpcap_discard(pr->rmt_sockctrl, plen, p->errbuf) == -1) in rpcap_stats_rpcap()
921 (void)rpcap_discard(pr->rmt_sockctrl, plen, NULL); in rpcap_stats_rpcap()
1052 if (temp->sockctrl == pr->rmt_sockctrl) in pcap_startcapture_remote()
1070 if (getpeername(pr->rmt_sockctrl, (struct sockaddr *) &saddr, &saddrlen) == -1) in pcap_startcapture_remote()
1180 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, in pcap_startcapture_remote()
1185 if (rpcap_process_msg_header(pr->rmt_sockctrl, pr->protocol_version, in pcap_startcapture_remote()
1191 if (rpcap_recv(pr->rmt_sockctrl, (char *)&startcapreply, in pcap_startcapture_remote()
1337 if (rpcap_discard(pr->rmt_sockctrl, plen, fp->errbuf) == -1) in pcap_startcapture_remote()
1377 (void)rpcap_discard(pr->rmt_sockctrl, plen, NULL); in pcap_startcapture_remote()
1384 sock_close(pr->rmt_sockctrl, NULL, 0); in pcap_startcapture_remote()
1517 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, in pcap_updatefilter_remote()
1522 if (rpcap_process_msg_header(pr->rmt_sockctrl, pr->protocol_version, in pcap_updatefilter_remote()
1529 if (rpcap_discard(pr->rmt_sockctrl, header.plen, fp->errbuf) == -1) in pcap_updatefilter_remote()
1620 if (getpeername(pr->rmt_sockctrl, (struct sockaddr *) &saddr, &saddrlen) == -1) in pcap_createfilter_norpcappkt()
1635 if (getsockname(pr->rmt_sockctrl, (struct sockaddr *) &saddr, &saddrlen) == -1) in pcap_createfilter_norpcappkt()
1762 if (sock_send(pr->rmt_sockctrl, sendbuf, sendbufidx, fp->errbuf, in pcap_setsampling_remote()
1767 if (rpcap_process_msg_header(pr->rmt_sockctrl, pr->protocol_version, in pcap_setsampling_remote()
1774 if (rpcap_discard(pr->rmt_sockctrl, header.plen, fp->errbuf) == -1) in pcap_setsampling_remote()
2280 if (rpcap_discard(pr->rmt_sockctrl, plen, errbuf) == -1) in pcap_open_rpcap()
2286 pr->rmt_sockctrl = sockctrl; in pcap_open_rpcap()
2318 (void)rpcap_discard(pr->rmt_sockctrl, plen, NULL); in pcap_open_rpcap()