I (finally) migrated from OS X 10.5 to OS X 10.6.4 and found out that I lost
network connectivity on my simulated VAX on SIMH. Updated tuntaposx (needed when going from 10.5 to 10.6), recompiled SIMH, no luck. First I was thinking it had something to do with the default compile option being 64-bit on 10.6 instead of 32-bit on 10.5. Tried a lot of things, no luck. Then I started looking for libpcap changes between 10.5 and 10.6 and found this thread on the tcpdump mailing list: http://seclists.org/tcpdump/2010/q1/110. I applied the following patch to sim_ether.c based on this thread: ------------------------------------------------------------------------ -------- --- sim_ether.c 2010-08-20 18:09:16.000000000 +0200 +++ sim_ether.c.orig 2008-04-24 23:11:42.000000000 +0200 @@ -138,7 +138,6 @@ Modification history: - 20-Aug-10 TVO Fix for Mac OSX 10.6 17-May-07 DTH Fixed non-ethernet device removal loop (from Naoki Hamada) 15-May-07 DTH Added dynamic loading of wpcap.dll; Corrected exceed max index bug in ethX lookup @@ -631,7 +630,7 @@ /* OpenVMS Alpha uses a WinPcap port and an associated execlet */ /*====================================================================== ======*/ -#if defined (xBSD) || defined(__APPLE__) +#if defined (xBSD) && !defined(__APPLE__) #include <sys/ioctl.h> #include <net/bpf.h> #endif /* xBSD */ @@ -976,15 +975,6 @@ } #endif #endif /* !defined (USE_READER_THREAD */ -#if defined (__APPLE__) - /* Deliver packets immediately, needed for OS X 10.6.2 and later - * (Snow-Leopard). - * See this thread on libpcap and Mac Os X 10.6 Snow Leopard on - * the tcpdump mailinglist: http://seclists.org/tcpdump/2010/q1/110 - */ - int v = 1; - ioctl(pcap_fileno(dev->handle), BIOCIMMEDIATE, &v); -#endif return SCPE_OK; } ------------------------------------------------------------------------ --------- With this patch everything started working again. This applies to all targets using sim_ether.c. Also from the thread on the tcpdump mailing list it might also apply to recent BSD flavors. Enjoy and happy networking with SIMH on Snow-Leopard. -- Ton van Overbeek
_______________________________________________ Simh mailing list [email protected] http://mailman.trailing-edge.com/mailman/listinfo/simh
