DEV9: Remove unneeded functions

This commit is contained in:
TheLastRar 2021-01-12 10:44:47 +00:00 committed by refractionpcsx2
parent 31606db6fe
commit 802c18cb68
1 changed files with 0 additions and 79 deletions

View File

@ -230,85 +230,6 @@ void pcap_io_close()
pcap_io_running = 0;
}
int pcap_io_get_dev_num()
{
int i = 0;
pcap_if_t* alldevs;
pcap_if_t* d;
if (pcap_findalldevs(&alldevs, errbuf) == -1)
{
return 0;
}
d = alldevs;
while (d != NULL)
{
d = d->next;
i++;
}
pcap_freealldevs(alldevs);
return i;
}
char* pcap_io_get_dev_name(int num)
{
pcap_if_t* alldevs;
pcap_if_t* d;
int i = 0;
if (pcap_findalldevs(&alldevs, errbuf) == -1)
{
return NULL;
}
d = alldevs;
while (d != NULL)
{
if (num == i)
{
strcpy(namebuff, d->name);
pcap_freealldevs(alldevs);
return namebuff;
}
d = d->next;
i++;
}
pcap_freealldevs(alldevs);
return NULL;
}
char* pcap_io_get_dev_desc(int num)
{
pcap_if_t* alldevs;
pcap_if_t* d;
int i = 0;
if (pcap_findalldevs(&alldevs, errbuf) == -1)
{
return NULL;
}
d = alldevs;
while (d != NULL)
{
if (num == i)
{
strcpy(namebuff, d->description);
pcap_freealldevs(alldevs);
return namebuff;
}
d = d->next;
i++;
}
pcap_freealldevs(alldevs);
return NULL;
}
PCAPAdapter::PCAPAdapter()
: NetAdapter()