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.6 by gbeauche, 2005-01-30T21:48:20Z

# Line 1 | Line 1
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
# 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