ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/dummy/ether_dummy.cpp
(Generate patch)

Comparing BasiliskII/src/dummy/ether_dummy.cpp (file contents):
Revision 1.9 by gbeauche, 2005-01-30T21:42:15Z vs.
Revision 1.10 by gbeauche, 2005-05-14T08:10:09Z

# Line 163 | Line 163 | void EtherInterrupt(void)
163   {
164   #if SUPPORTS_UDP_TUNNEL
165          if (udp_tunnel_active) {
166 <                uint8 packet[1514];
166 >                EthernetPacket ether_packet;
167 >                uint32 packet = ether_packet.addr();
168                  ssize_t length;
169  
170                  // Read packets from socket and hand to ether_udp_read() for processing
171                  while (true) {
172                          struct sockaddr_in from;
173                          socklen_t from_len = sizeof(from);
174 <                        length = recvfrom(fd, packet, 1514, 0, (struct sockaddr *)&from, &from_len);
174 >                        length = recvfrom(fd, Mac2HostAddr(packet), 1514, 0, (struct sockaddr *)&from, &from_len);
175                          if (length < 14)
176                                  break;
177                          ether_udp_read(packet, length, &from);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines