• Home
  • Raw
  • Download

Lines Matching refs:errbuf

186 	char errbuf[PCAP_ERRBUF_SIZE + 1];	// keeps the error string, prior to be printed  in main()  local
199 memset(errbuf, 0, sizeof(errbuf)); in main()
335 if (pcap_init(PCAP_CHAR_ENC_UTF_8, errbuf) == -1) in main()
337 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in main()
342 if (sock_init(errbuf, PCAP_ERRBUF_SIZE) == -1) in main()
344 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in main()
363 sock_geterror("Can't create state change event", errbuf, in main()
365 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in main()
374 sock_geterror("Can't set control handler", errbuf, in main()
376 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in main()
397 if (ssl_init_once(1, enable_compression, errbuf, PCAP_ERRBUF_SIZE) < 0) in main()
400 errbuf); in main()
429 sock_geterror("Can't dup standard input", errbuf, in main()
431 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in main()
557 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in main_startup() local
568 memset(errbuf, 0, sizeof(errbuf)); in main_startup()
613 …if (sock_initaddress((address[0]) ? address : NULL, port, &mainhints, &addrinfo, errbuf, PCAP_ERRB… in main_startup()
615 rpcapd_log(LOGPRIO_DEBUG, "%s", errbuf); in main_startup()
625 …if ((sock = sock_open(tempaddrinfo, SOCKOPEN_SERVER, SOCKET_MAXCONN, errbuf, PCAP_ERRBUF_SIZE)) ==… in main_startup()
639 errbuf); in main_startup()
653 errbuf); in main_startup()
660 errbuf); in main_startup()
734 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in send_state_change_event() local
738 sock_geterror("SetEvent on shutdown event failed", errbuf, in send_state_change_event()
740 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in send_state_change_event()
856 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in accept_connections() local
906 sock_geterror("Can't create socket event", errbuf, in accept_connections()
908 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in accept_connections()
913 sock_geterror("Can't setup socket event", errbuf, in accept_connections()
915 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in accept_connections()
932 sock_geterror("WSAWaitForMultipleEvents failed", errbuf, in accept_connections()
934 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in accept_connections()
973 errbuf, PCAP_ERRBUF_SIZE); in accept_connections()
974 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in accept_connections()
989 errbuf, in accept_connections()
991 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in accept_connections()
1135 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in accept_connection() local
1149 memset(errbuf, 0, sizeof(errbuf)); in accept_connection()
1176 sock_geterror("accept()", errbuf, PCAP_ERRBUF_SIZE); in accept_connection()
1178 errbuf); in accept_connection()
1200 sock_geterror("WSAEventSelect()", errbuf, PCAP_ERRBUF_SIZE); in accept_connection()
1201 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in accept_connection()
1207 sock_geterror("ioctlsocket(FIONBIO)", errbuf, PCAP_ERRBUF_SIZE); in accept_connection()
1208 rpcapd_log(LOGPRIO_ERROR, "%s", errbuf); in accept_connection()
1327 char errbuf[PCAP_ERRBUF_SIZE + 1]; // keeps the error string, prior to be printed in main_active() local
1347 memset(errbuf, 0, sizeof(errbuf)); in main_active()
1350 …if (sock_initaddress(activepars->address, activepars->port, &hints, &addrinfo, errbuf, PCAP_ERRBUF… in main_active()
1352 rpcapd_log(LOGPRIO_DEBUG, "%s", errbuf); in main_active()
1360 …if ((sockctrl = sock_open(addrinfo, SOCKOPEN_CLIENT, 0, errbuf, PCAP_ERRBUF_SIZE)) == INVALID_SOCK… in main_active()
1362 rpcapd_log(LOGPRIO_DEBUG, "%s", errbuf); in main_active()
1364 snprintf(errbuf, PCAP_ERRBUF_SIZE, "Error connecting to host %s, port %s, using protocol %s", in main_active()
1368 rpcapd_log(LOGPRIO_DEBUG, "%s", errbuf); in main_active()