mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-05-31 00:41:34 +00:00
fixed indentation ether_unix
This commit is contained in:
parent
0c622863cf
commit
cf406ec953
|
@ -998,16 +998,15 @@ void ether_do_interrupt(void)
|
|||
if (net_if_type == NET_IF_VDE) {
|
||||
length = vde_recv(vde_conn, Mac2HostAddr(packet), 1514, 0);
|
||||
} else {
|
||||
|
||||
// Read packet from sheep_net device
|
||||
#if defined(__linux__)
|
||||
length = read(fd, Mac2HostAddr(packet), net_if_type == NET_IF_ETHERTAP ? 1516 : 1514);
|
||||
length = read(fd, Mac2HostAddr(packet), net_if_type == NET_IF_ETHERTAP ? 1516 : 1514);
|
||||
#else
|
||||
length = read(fd, Mac2HostAddr(packet), 1514);
|
||||
length = read(fd, Mac2HostAddr(packet), 1514);
|
||||
#endif
|
||||
if (length < 14)
|
||||
break;
|
||||
}
|
||||
if (length < 14)
|
||||
break;
|
||||
|
||||
#if MONITOR
|
||||
bug("Receiving Ethernet packet:\n");
|
||||
|
|
Loading…
Reference in New Issue
Block a user