Fix VirtualBox Lance bug; ec_reinit should be called only once.
This commit is contained in:
parent
70d25344a2
commit
0be5720af1
@ -494,6 +494,7 @@ message *mp;
|
||||
int port;
|
||||
ether_card_t *ec;
|
||||
message reply_mess;
|
||||
static int first_time = 1;
|
||||
|
||||
pci_init();
|
||||
|
||||
@ -566,7 +567,11 @@ pci_init();
|
||||
ec->flags |= ECF_BROAD;
|
||||
|
||||
ec->client = mp->m_source;
|
||||
ec_reinit(ec);
|
||||
if (first_time)
|
||||
{
|
||||
first_time = 0;
|
||||
ec_reinit(ec);
|
||||
}
|
||||
|
||||
reply_mess.m_type = DL_CONF_REPLY;
|
||||
reply_mess.m3_i1 = mp->DL_PORT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user