Lines Matching refs:ebuf

513 	char ebuf[PCAP_ERRBUF_SIZE];  in show_devices_and_exit()  local
516 if (pcap_findalldevs(&devlist, ebuf) < 0) in show_devices_and_exit()
517 error("%s", ebuf); in show_devices_and_exit()
578 char ebuf[PCAP_ERRBUF_SIZE]; in show_remote_devices_and_exit() local
582 ebuf) < 0) in show_remote_devices_and_exit()
583 error("%s", ebuf); in show_remote_devices_and_exit()
1192 char ebuf[PCAP_ERRBUF_SIZE]; in find_interface_by_number() local
1233 status = pcap_findalldevs_ex(host_url, NULL, &devlist, ebuf); in find_interface_by_number()
1237 status = pcap_findalldevs(&devlist, ebuf); in find_interface_by_number()
1239 error("%s", ebuf); in find_interface_by_number()
1266 open_interface(const char *device, netdissect_options *ndo, char *ebuf) in open_interface() argument
1283 *ebuf = '\0'; in open_interface()
1286 ebuf); in open_interface()
1295 if (strstr(ebuf, "No such device") != NULL || in open_interface()
1296 strstr(ebuf, "The system cannot find the device specified") != NULL) in open_interface()
1298 error("%s", ebuf); in open_interface()
1300 if (*ebuf) in open_interface()
1301 warning("%s", ebuf); in open_interface()
1307 pc = pcap_create(device, ebuf); in open_interface()
1315 if (strstr(ebuf, "No such device") != NULL) in open_interface()
1317 error("%s", ebuf); in open_interface()
1401 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s: %s\n(%s)", in open_interface()
1460 *ebuf = '\0'; in open_interface()
1467 pc = pcap_open_live(device, ndo->ndo_snaplen, !pflag, timeout, ebuf); in open_interface()
1475 if (strstr(ebuf, "No such device") != NULL) in open_interface()
1477 error("%s", ebuf); in open_interface()
1479 if (*ebuf) in open_interface()
1480 warning("%s", ebuf); in open_interface()
1502 char ebuf[PCAP_ERRBUF_SIZE]; in main() local
1531 if (nd_init(ebuf, sizeof(ebuf)) == -1) in main()
1532 error("%s", ebuf); in main()
1565 if (abort_on_misalignment(ebuf, sizeof(ebuf)) < 0) in main()
1566 error("%s", ebuf); in main()
1740 if (nd_load_smi_module(optarg, ebuf, sizeof(ebuf)) == -1) in main()
1741 error("%s", ebuf); in main()
2080 ndo->ndo_tstamp_precision, ebuf); in main()
2082 pd = pcap_open_offline(RFileName, ebuf); in main()
2086 error("%s", ebuf); in main()
2144 if (pcap_findalldevs(&devlist, ebuf) == -1) in main()
2145 error("%s", ebuf); in main()
2155 device = pcap_lookupdev(ebuf); in main()
2157 error("%s", ebuf); in main()
2164 pd = open_interface(device, ndo, ebuf); in main()
2180 error("%s", ebuf); in main()
2192 pd = open_interface(device, ndo, ebuf); in main()
2194 error("%s", ebuf); in main()
2200 error("%s", ebuf); in main()
2268 if (pcap_lookupnet(device, &localnet, &netmask, ebuf) < 0) { in main()
2269 warning("foreign (-f) flag used but: %s", ebuf); in main()
2658 pd = pcap_open_offline(RFileName, ebuf); in main()
2660 error("%s", ebuf); in main()