From 4bf4a1d2b00baad624b677d5098711b78f386a17 Mon Sep 17 00:00:00 2001 From: gbeauche <> Date: Sat, 14 May 2005 08:10:09 +0000 Subject: [PATCH] fix for new packet interface --- BasiliskII/src/dummy/ether_dummy.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/BasiliskII/src/dummy/ether_dummy.cpp b/BasiliskII/src/dummy/ether_dummy.cpp index fc86ee41..bee6bd4a 100644 --- a/BasiliskII/src/dummy/ether_dummy.cpp +++ b/BasiliskII/src/dummy/ether_dummy.cpp @@ -163,14 +163,15 @@ void EtherInterrupt(void) { #if SUPPORTS_UDP_TUNNEL if (udp_tunnel_active) { - uint8 packet[1514]; + EthernetPacket ether_packet; + uint32 packet = ether_packet.addr(); ssize_t length; // Read packets from socket and hand to ether_udp_read() for processing while (true) { struct sockaddr_in from; socklen_t from_len = sizeof(from); - length = recvfrom(fd, packet, 1514, 0, (struct sockaddr *)&from, &from_len); + length = recvfrom(fd, Mac2HostAddr(packet), 1514, 0, (struct sockaddr *)&from, &from_len); if (length < 14) break; ether_udp_read(packet, length, &from);