1 |
|
/* |
2 |
|
* ether_windows.cpp - Ethernet device driver |
3 |
|
* |
4 |
< |
* Basilisk II (C) 1997-2005 Christian Bauer |
4 |
> |
* Basilisk II (C) 1997-2008 Christian Bauer |
5 |
|
* |
6 |
|
* Windows platform specific code copyright (C) Lauri Pesonen |
7 |
|
* |
230 |
|
|
231 |
|
// Determine Ethernet device type |
232 |
|
net_if_type = -1; |
233 |
< |
if (strcmp(name, "router") == 0) |
233 |
> |
if (PrefsFindBool("routerenabled") || strcmp(name, "router") == 0) |
234 |
|
net_if_type = NET_IF_ROUTER; |
235 |
|
else if (strcmp(name, "slirp") == 0) |
236 |
|
net_if_type = NET_IF_SLIRP; |
259 |
|
switch (net_if_type) { |
260 |
|
case NET_IF_B2ETHER: |
261 |
|
dev_name = PrefsFindString("etherguid"); |
262 |
+ |
if (dev_name == NULL || strcmp(name, "b2ether") != 0) |
263 |
+ |
dev_name = name; |
264 |
|
break; |
265 |
|
case NET_IF_TAP: |
266 |
|
dev_name = PrefsFindString("etherguid"); |