mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-15 13:05:35 +00:00
Typos. In EtherIRQ sheep_net case, really grab size bytes from device
This commit is contained in:
parent
8f6a408701
commit
4571aa1c23
@ -148,8 +148,8 @@ void EtherInit(void)
|
||||
case NET_IF_ETHERTAP:
|
||||
sprintf(dev_name, "/dev/%s", name);
|
||||
break;
|
||||
case NET_IF_TUNTAP:
|
||||
sprintf(dev_name, "/dev/net/tun", name);
|
||||
case NET_IF_TUNTAP:
|
||||
strcpy(dev_name, "/dev/net/tun");
|
||||
break;
|
||||
case NET_IF_SHEEPNET:
|
||||
strcpy(dev_name, "/dev/sheep_net");
|
||||
@ -485,7 +485,7 @@ void EtherIRQ(void)
|
||||
mblk_t *mp;
|
||||
if ((mp = allocb(size, 0)) != NULL) {
|
||||
D(bug(" packet data at %p\n", (void *)mp->b_rptr));
|
||||
read(fd, mp->b_rptr, 1514);
|
||||
read(fd, mp->b_rptr, size);
|
||||
#if MONITOR
|
||||
bug("Receiving Ethernet packet:\n");
|
||||
for (int i=0; i<size; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user