ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/Linux/ether_linux.cpp
(Generate patch)

Comparing SheepShaver/src/Unix/Linux/ether_linux.cpp (file contents):
Revision 1.4 by gbeauche, 2004-05-10T12:05:44Z vs.
Revision 1.5 by gbeauche, 2004-05-12T11:42:12Z

# Line 148 | Line 148 | void EtherInit(void)
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");
# Line 485 | Line 485 | void EtherIRQ(void)
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++) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines