ETHER: Removed references to pcap_get_servicename since that API won't exist

Early versions of Npcap for Windows added pcap_get_servicename, but this
code was dropped when the latest libpcap codebase was merged into Npcap.
This commit is contained in:
Mark Pizzolato 2016-08-12 12:36:10 -07:00
parent 592deb8f03
commit 1c4a1ed871

View file

@ -739,7 +739,6 @@ void eth_zero(ETH_DEV* dev)
}
static char* (*p_pcap_lib_version) (void);
static char* (*p_pcap_get_servicename) (void);
static ETH_DEV **eth_open_devices = NULL;
static int eth_open_device_count = 0;
@ -789,9 +788,6 @@ t_stat eth_show (FILE* st, UNIT* uptr, int32 val, CONST void* desc)
}
if (p_pcap_lib_version) {
fprintf(st, "%s\n", p_pcap_lib_version());
#if defined(_WIN32)
fprintf(st, "Windows Packet Capture Service Name: %s\n", p_pcap_get_servicename ? p_pcap_get_servicename() : "npf");
#endif
}
if (eth_open_device_count) {
int i;
@ -1185,7 +1181,6 @@ int load_pcap(void) {
load_function("pcap_setfilter", (_func *) &p_pcap_setfilter);
load_function("pcap_setnonblock", (_func *) &p_pcap_setnonblock);
load_function("pcap_lib_version", (_func *) &p_pcap_lib_version);
try_load_function("pcap_get_servicename",(_func *) &p_pcap_get_servicename);
if ((lib_loaded == 1) && (!eth_show_active)) {
/* log successful load */