Ticket #26181: sim_ether.c.diff
File sim_ether.c.diff, 1.2 KB (added by tvoverbeek@…, 14 years ago) |
---|
-
sim_ether.c
old new 138 138 139 139 Modification history: 140 140 141 20-Aug-10 TVO Fix for Mac OSX 10.6142 141 17-May-07 DTH Fixed non-ethernet device removal loop (from Naoki Hamada) 143 142 15-May-07 DTH Added dynamic loading of wpcap.dll; 144 143 Corrected exceed max index bug in ethX lookup … … 631 630 /* OpenVMS Alpha uses a WinPcap port and an associated execlet */ 632 631 /*============================================================================*/ 633 632 634 #if defined (xBSD) ||defined(__APPLE__)633 #if defined (xBSD) && !defined(__APPLE__) 635 634 #include <sys/ioctl.h> 636 635 #include <net/bpf.h> 637 636 #endif /* xBSD */ … … 976 975 } 977 976 #endif 978 977 #endif /* !defined (USE_READER_THREAD */ 979 #if defined (__APPLE__)980 /* Deliver packets immediately, needed for OS X 10.6.2 and later981 * (Snow-Leopard).982 * See this thread on libpcap and Mac Os X 10.6 Snow Leopard on983 * the tcpdump mailinglist: http://seclists.org/tcpdump/2010/q1/110984 */985 int v = 1;986 ioctl(pcap_fileno(dev->handle), BIOCIMMEDIATE, &v);987 #endif988 978 return SCPE_OK; 989 979 } 990 980