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;
|
int port;
|
||||||
ether_card_t *ec;
|
ether_card_t *ec;
|
||||||
message reply_mess;
|
message reply_mess;
|
||||||
|
static int first_time = 1;
|
||||||
|
|
||||||
pci_init();
|
pci_init();
|
||||||
|
|
||||||
@ -566,7 +567,11 @@ pci_init();
|
|||||||
ec->flags |= ECF_BROAD;
|
ec->flags |= ECF_BROAD;
|
||||||
|
|
||||||
ec->client = mp->m_source;
|
ec->client = mp->m_source;
|
||||||
|
if (first_time)
|
||||||
|
{
|
||||||
|
first_time = 0;
|
||||||
ec_reinit(ec);
|
ec_reinit(ec);
|
||||||
|
}
|
||||||
|
|
||||||
reply_mess.m_type = DL_CONF_REPLY;
|
reply_mess.m_type = DL_CONF_REPLY;
|
||||||
reply_mess.m3_i1 = mp->DL_PORT;
|
reply_mess.m3_i1 = mp->DL_PORT;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user