More cleanups, also updated Makefile.local with all "user-settable" parts.

This commit is contained in:
waltje
2017-10-19 21:08:34 -04:00
parent 1d60a99ea3
commit 0af26c1c3b
13 changed files with 102 additions and 90 deletions

View File

@@ -12,7 +12,7 @@
* it should be malloc'ed and then linked to the NETCARD def.
* Will be done later.
*
* Version: @(#)network.c 1.0.15 2017/10/16
* Version: @(#)network.c 1.0.16 2017/10/19
*
* Author: Fred N. van Kempen, <decwiz@yahoo.com>
*
@@ -54,9 +54,10 @@ int network_ndev;
int network_card;
netdev_t network_devs[32];
char network_pcap[512];
int nic_do_log;
static volatile
mutex_t *netMutex;
#ifdef ENABLE_NIC_LOG
int nic_do_log = ENABLE_NIC_LOG;
#endif
static volatile mutex_t *netMutex;
static struct
@@ -119,12 +120,6 @@ network_init(void)
{
int i;
#if ENABLE_NIC_LOG
nic_do_log = ENABLE_NIC_LOG;
#else
nic_do_log = 0;
#endif
/* Initialize to a known state. */
network_type = NET_TYPE_NONE;
network_card = 0;