Improve the error message printed if you try to use the "any" device on
a system where only SOCK_PACKET works.
This commit is contained in:
parent
109075a904
commit
6fc6ca1eb5
|
@ -26,7 +26,7 @@
|
|||
*/
|
||||
#ifndef lint
|
||||
static const char rcsid[] =
|
||||
"@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.42 2000-12-16 10:43:29 guy Exp $ (LBL)";
|
||||
"@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.43 2000-12-18 00:20:51 guy Exp $ (LBL)";
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -889,7 +889,7 @@ live_open_old(pcap_t *handle, char *device, int promisc,
|
|||
/* Bind to the given device */
|
||||
|
||||
if (!device) {
|
||||
strncpy(ebuf, "pcap_open_live: No interface given",
|
||||
strncpy(ebuf, "pcap_open_live: The \"any\" device isn't supported on 2.0[.x]-kernel systems",
|
||||
PCAP_ERRBUF_SIZE);
|
||||
break;
|
||||
}
|
||||
|
|
Reference in New Issue