• Home
  • Raw
  • Download

Lines Matching refs:sockctrl

93 	SOCKET sockctrl;  member
175 static void rpcap_msg_err(SOCKET sockctrl, SSL *, uint32 plen, char *remote_errbuf);
724 if (temp->sockctrl == pr->rmt_sockctrl) in pcap_cleanup_rpcap()
1103 if (temp->sockctrl == pr->rmt_sockctrl) in pcap_startcapture_remote()
1914 static int rpcap_doauth(SOCKET sockctrl, SSL *ssl, uint8 *ver, struct pcap_rmtauth *auth, char *err… in rpcap_doauth() argument
2013 if (sock_send(sockctrl, ssl, sendbuf, sendbufidx, errbuf, in rpcap_doauth()
2018 if (rpcap_process_msg_header(sockctrl, ssl, 0, RPCAP_MSG_AUTH_REQ, in rpcap_doauth()
2034 (void)rpcap_discard(sockctrl, ssl, plen, NULL); in rpcap_doauth()
2039 if (rpcap_recv(sockctrl, ssl, (char *)&authreply, in rpcap_doauth()
2042 (void)rpcap_discard(sockctrl, ssl, plen, NULL); in rpcap_doauth()
2047 if (rpcap_discard(sockctrl, ssl, plen, errbuf) == -1) in rpcap_doauth()
2181 *sockctrlp = activeconn->sockctrl; in rpcap_setup_session()
2314 SOCKET sockctrl; in pcap_open_rpcap() local
2361 if (rpcap_setup_session(fp->opt.device, auth, &active, &sockctrl, in pcap_open_rpcap()
2388 if (sock_send(sockctrl, ssl, sendbuf, sendbufidx, errbuf, in pcap_open_rpcap()
2393 if (rpcap_process_msg_header(sockctrl, ssl, protocol_version, in pcap_open_rpcap()
2399 if (rpcap_recv(sockctrl, ssl, (char *)&openreply, in pcap_open_rpcap()
2404 if (rpcap_discard(sockctrl, ssl, plen, errbuf) == -1) in pcap_open_rpcap()
2409 pr->rmt_sockctrl = sockctrl; in pcap_open_rpcap()
2442 (void)rpcap_discard(sockctrl, pr->ctrl_ssl, plen, NULL); in pcap_open_rpcap()
2455 sock_close(sockctrl, NULL, 0); in pcap_open_rpcap()
2483 SOCKET sockctrl; /* socket descriptor of the control connection */ in pcap_findalldevs_ex_remote() local
2503 if (rpcap_setup_session(source, auth, &active, &sockctrl, &uses_ssl, in pcap_findalldevs_ex_remote()
2514 if (sock_send(sockctrl, ssl, (char *)&header, sizeof(struct rpcap_header), in pcap_findalldevs_ex_remote()
2519 if (rpcap_process_msg_header(sockctrl, ssl, protocol_version, in pcap_findalldevs_ex_remote()
2538 if (rpcap_recv(sockctrl, ssl, (char *)&findalldevs_if, in pcap_findalldevs_ex_remote()
2587 if (rpcap_recv(sockctrl, ssl, tmpstring, in pcap_findalldevs_ex_remote()
2616 if (rpcap_recv(sockctrl, ssl, tmpstring, in pcap_findalldevs_ex_remote()
2641 if (rpcap_recv(sockctrl, ssl, (char *)&ifaddr, in pcap_findalldevs_ex_remote()
2715 if (rpcap_discard(sockctrl, ssl, plen, errbuf) == 1) in pcap_findalldevs_ex_remote()
2730 if (sock_close(sockctrl, errbuf, PCAP_ERRBUF_SIZE)) in pcap_findalldevs_ex_remote()
2753 (void) rpcap_discard(sockctrl, ssl, plen, NULL); in pcap_findalldevs_ex_remote()
2767 sock_close(sockctrl, NULL, 0); in pcap_findalldevs_ex_remote()
2793 SOCKET sockctrl; /* keeps the main socket identifier */ in pcap_remoteact_accept_ex() local
2839 sockctrl = accept(sockmain, (struct sockaddr *) &from, &fromlen); in pcap_remoteact_accept_ex()
2846 if (sockctrl == INVALID_SOCKET) in pcap_remoteact_accept_ex()
2856 ssl = ssl_promotion(0, sockctrl, errbuf, PCAP_ERRBUF_SIZE); in pcap_remoteact_accept_ex()
2859 sock_close(sockctrl, NULL, 0); in pcap_remoteact_accept_ex()
2864 sock_close(sockctrl, NULL, 0); in pcap_remoteact_accept_ex()
2873 rpcap_senderror(sockctrl, ssl, 0, PCAP_ERR_REMOTEACCEPT, errbuf, NULL); in pcap_remoteact_accept_ex()
2882 sock_close(sockctrl, NULL, 0); in pcap_remoteact_accept_ex()
2889 rpcap_senderror(sockctrl, ssl, 0, PCAP_ERR_REMOTEACCEPT, errbuf, NULL); in pcap_remoteact_accept_ex()
2898 sock_close(sockctrl, NULL, 0); in pcap_remoteact_accept_ex()
2905 if (rpcap_doauth(sockctrl, ssl, &protocol_version, auth, errbuf) == -1) in pcap_remoteact_accept_ex()
2908 rpcap_senderror(sockctrl, ssl, 0, PCAP_ERR_REMOTEACCEPT, errbuf, NULL); in pcap_remoteact_accept_ex()
2917 sock_close(sockctrl, NULL, 0); in pcap_remoteact_accept_ex()
2931 return sockctrl; in pcap_remoteact_accept_ex()
2953 rpcap_senderror(sockctrl, ssl, protocol_version, PCAP_ERR_REMOTEACCEPT, errbuf, NULL); in pcap_remoteact_accept_ex()
2962 sock_close(sockctrl, NULL, 0); in pcap_remoteact_accept_ex()
2967 temp->sockctrl = sockctrl; in pcap_remoteact_accept_ex()
2972 return sockctrl; in pcap_remoteact_accept_ex()
3020 if (sock_send(temp->sockctrl, temp->ssl, in pcap_remoteact_close()
3039 (void)sock_close(temp->sockctrl, NULL, in pcap_remoteact_close()
3055 if (sock_close(temp->sockctrl, errbuf, in pcap_remoteact_close()
3340 static void rpcap_msg_err(SOCKET sockctrl, SSL *ssl, uint32 plen, char *remote_errbuf) in rpcap_msg_err() argument
3350 if (sock_recv(sockctrl, ssl, remote_errbuf, PCAP_ERRBUF_SIZE - 1, in rpcap_msg_err()
3376 (void)rpcap_discard(sockctrl, ssl, plen - (PCAP_ERRBUF_SIZE - 1), remote_errbuf); in rpcap_msg_err()
3385 if (sock_recv(sockctrl, ssl, remote_errbuf, plen, in rpcap_msg_err()