1 |
|
/* |
2 |
|
* ether_linux.cpp - SheepShaver Ethernet Device Driver (DLPI), Linux specific stuff |
3 |
|
* |
4 |
< |
* SheepShaver (C) 1997-2004 Marc Hellwig and Christian Bauer |
4 |
> |
* SheepShaver (C) 1997-2005 Marc Hellwig and Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
148 |
|
case NET_IF_ETHERTAP: |
149 |
|
sprintf(dev_name, "/dev/%s", name); |
150 |
|
break; |
151 |
< |
case NET_IF_TUNTAP: |
152 |
< |
sprintf(dev_name, "/dev/net/tun", name); |
151 |
> |
case NET_IF_TUNTAP: |
152 |
> |
strcpy(dev_name, "/dev/net/tun"); |
153 |
|
break; |
154 |
|
case NET_IF_SHEEPNET: |
155 |
|
strcpy(dev_name, "/dev/sheep_net"); |
485 |
|
mblk_t *mp; |
486 |
|
if ((mp = allocb(size, 0)) != NULL) { |
487 |
|
D(bug(" packet data at %p\n", (void *)mp->b_rptr)); |
488 |
< |
read(fd, mp->b_rptr, 1514); |
488 |
> |
read(fd, mp->b_rptr, size); |
489 |
|
#if MONITOR |
490 |
|
bug("Receiving Ethernet packet:\n"); |
491 |
|
for (int i=0; i<size; i++) { |