mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-26 10:49:21 +00:00
fixed a bug
This commit is contained in:
parent
2bc581d4f6
commit
242e8af3a7
@ -1004,10 +1004,11 @@ void ether_do_interrupt(void)
|
|||||||
#else
|
#else
|
||||||
length = read(fd, Mac2HostAddr(packet), 1514);
|
length = read(fd, Mac2HostAddr(packet), 1514);
|
||||||
#endif
|
#endif
|
||||||
if (length < 14)
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (length < 14)
|
||||||
|
break;
|
||||||
|
|
||||||
#if MONITOR
|
#if MONITOR
|
||||||
bug("Receiving Ethernet packet:\n");
|
bug("Receiving Ethernet packet:\n");
|
||||||
for (int i=0; i<length; i++) {
|
for (int i=0; i<length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user