diff --git a/sim_ether.c b/sim_ether.c index aa7a21b7..a94396bd 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -661,6 +661,11 @@ const char* eth_getname(int number, char* name, char *desc) if ((number < 0) || (count <= number)) return NULL; + if (list[number].eth_api != ETH_API_PCAP) { + sim_printf ("Eth: Pcap capable device not found. You may need to run as root\n"); + return NULL; + } + strcpy(name, list[number].name); strcpy(desc, list[number].desc); return name; @@ -3819,6 +3824,7 @@ for (i=0; i