Network cleanup, updated pcap_if to have a sniffer, PCAP now works properly. Removed all Slirp warnings.

This commit is contained in:
waltje
2017-05-09 22:09:55 -04:00
parent 645ade52b1
commit b975839b41
9 changed files with 2081 additions and 1936 deletions

View File

@@ -319,9 +319,12 @@ void initpc(int argc, wchar_t *argv[])
}
}
/* Initialize modules. */
network_init();
mouse_init();
midi_init();
serial_init();
disc_random_init();
if (config_file == NULL)
{
@@ -332,8 +335,6 @@ void initpc(int argc, wchar_t *argv[])
append_filename_w(config_file_default, pcempath, config_file, 511);
}
disc_random_init();
loadconfig(config_file);
pclog("Config loaded\n");
if (config_file)
@@ -488,8 +489,6 @@ void resetpchard(void)
ide_qua_init();
}
network_init();
for (i = 0; i < CDROM_NUM; i++)
{
if (cdrom_drives[i].bus_type)
@@ -498,6 +497,7 @@ void resetpchard(void)
}
}
network_reset();
resetide();
scsi_card_init();