Lines Matching refs:errbuf

168 	char errbuf[PCAP_ERRBUF_SIZE + 1];	// keeps the error string, prior to be printed  in main()  local
178 memset(errbuf, 0, sizeof(errbuf)); in main()
180 if (sock_init(errbuf, PCAP_ERRBUF_SIZE) == -1) in main()
182 SOCK_DEBUG_MESSAGE(errbuf); in main()
302 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in main()
304 errbuf); in main()
313 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in main()
315 errbuf); in main()
356 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in main()
358 errbuf); in main()
364 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in main()
366 errbuf); in main()
484 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in main_startup() local
495 memset(errbuf, 0, sizeof(errbuf)); in main_startup()
540 …if (sock_initaddress((address[0]) ? address : NULL, port, &mainhints, &addrinfo, errbuf, PCAP_ERRB… in main_startup()
542 SOCK_DEBUG_MESSAGE(errbuf); in main_startup()
552 …if ((sock = sock_open(tempaddrinfo, SOCKOPEN_SERVER, SOCKET_MAXCONN, errbuf, PCAP_ERRBUF_SIZE)) ==… in main_startup()
566 errbuf); in main_startup()
580 errbuf); in main_startup()
587 errbuf); in main_startup()
661 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in send_state_change_event() local
665 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in send_state_change_event()
666 rpcapd_log(LOGPRIO_ERROR, "SetEvent on shutdown event failed: %s", errbuf); in send_state_change_event()
782 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in accept_connections() local
832 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in accept_connections()
833 rpcapd_log(LOGPRIO_ERROR, "Can't create socket event: %s", errbuf); in accept_connections()
838 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in accept_connections()
839 rpcapd_log(LOGPRIO_ERROR, "Can't setup socket event: %s", errbuf); in accept_connections()
856 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in accept_connections()
857 rpcapd_log(LOGPRIO_ERROR, "WSAWaitForMultipleEvents failed: %s", errbuf); in accept_connections()
895 sock_geterror(NULL, errbuf, PCAP_ERRBUF_SIZE); in accept_connections()
896 rpcapd_log(LOGPRIO_ERROR, "WSAEnumNetworkEvents failed: %s", errbuf); in accept_connections()
911 errbuf, in accept_connections()
913 rpcapd_log(LOGPRIO_ERROR, "Socket error: %s", errbuf); in accept_connections()
1043 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in accept_connection() local
1057 memset(errbuf, 0, sizeof(errbuf)); in accept_connection()
1084 sock_geterror("accept(): ", errbuf, PCAP_ERRBUF_SIZE); in accept_connection()
1086 errbuf); in accept_connection()
1094 if (sock_check_hostlist(hostlist, RPCAP_HOSTLIST_SEP, &from, errbuf, PCAP_ERRBUF_SIZE) < 0) in accept_connection()
1096 rpcap_senderror(sockctrl, 0, PCAP_ERR_HOSTNOAUTH, errbuf, NULL); in accept_connection()
1113 sock_geterror("ioctlsocket(FIONBIO): ", errbuf, PCAP_ERRBUF_SIZE); in accept_connection()
1114 rpcap_senderror(sockctrl, 0, PCAP_ERR_HOSTNOAUTH, errbuf, NULL); in accept_connection()
1120 sock_geterror("ioctlsocket(FIONBIO): ", errbuf, PCAP_ERRBUF_SIZE); in accept_connection()
1121 rpcap_senderror(sockctrl, 0, PCAP_ERR_HOSTNOAUTH, errbuf, NULL); in accept_connection()
1136 pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, in accept_connection()
1138 rpcap_senderror(sockctrl, 0, PCAP_ERR_OPEN, errbuf, NULL); in accept_connection()
1148 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error creating the child thread"); in accept_connection()
1149 rpcap_senderror(sockctrl, 0, PCAP_ERR_OPEN, errbuf, NULL); in accept_connection()
1159 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error creating the child process"); in accept_connection()
1160 rpcap_senderror(sockctrl, 0, PCAP_ERR_OPEN, errbuf, NULL); in accept_connection()
1223 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in main_active() local
1238 pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "Connecting to host %s, port %s, using protocol %s", in main_active()
1241 SOCK_DEBUG_MESSAGE(errbuf); in main_active()
1244 memset(errbuf, 0, sizeof(errbuf)); in main_active()
1247 …if (sock_initaddress(activepars->address, activepars->port, &hints, &addrinfo, errbuf, PCAP_ERRBUF… in main_active()
1249 SOCK_DEBUG_MESSAGE(errbuf); in main_active()
1257 …if ((sockctrl = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, errbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCK… in main_active()
1259 SOCK_DEBUG_MESSAGE(errbuf); in main_active()
1261 … pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error connecting to host %s, port %s, using protocol %s", in main_active()
1265 SOCK_DEBUG_MESSAGE(errbuf); in main_active()