mirror of
https://github.com/86Box/86Box.git
synced 2026-02-25 21:43:16 -07:00
Set Link State from VBox to 86Box implemented on the PCnet card (any other nics don't have it and will simply return NULL).
The PCnet-based Racal nic now has its own OID to make its drivers happy (according to VBox).
This commit is contained in:
@@ -223,7 +223,7 @@ network_init(void)
|
||||
* modules.
|
||||
*/
|
||||
void
|
||||
network_attach(void *dev, uint8_t *mac, NETRXCB rx, NETWAITCB wait)
|
||||
network_attach(void *dev, uint8_t *mac, NETRXCB rx, NETWAITCB wait, NETSETLINKSTATE set_link_state)
|
||||
{
|
||||
if (network_card == 0) return;
|
||||
|
||||
@@ -231,6 +231,7 @@ network_attach(void *dev, uint8_t *mac, NETRXCB rx, NETWAITCB wait)
|
||||
net_cards[network_card].priv = dev;
|
||||
net_cards[network_card].rx = rx;
|
||||
net_cards[network_card].wait = wait;
|
||||
net_cards[network_card].set_link_state = set_link_state;
|
||||
network_mac = mac;
|
||||
|
||||
network_set_wait(0);
|
||||
|
||||
Reference in New Issue
Block a user