[Midnightbsd-cvs] mports: patch-iodev-eth_fbsd.cc:

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Mar 1 12:11:24 EST 2009


Log Message:
-----------


Added Files:
-----------
    mports/emulators/bochs/files:
        patch-iodev-eth_fbsd.cc (r1.1)

-------------- next part --------------
--- /dev/null
+++ emulators/bochs/files/patch-iodev-eth_fbsd.cc
@@ -0,0 +1,17 @@
+--- iodev/eth_fbsd.cc.orig	Sat Dec 10 19:37:35 2005
++++ iodev/eth_fbsd.cc	Sun Nov 19 15:56:46 2006
+@@ -227,6 +227,14 @@
+     return;
+   }
+ 
++  v = 1;
++  if (ioctl(this->bpf_fd, BIOCIMMEDIATE, &v) < 0) {
++    BX_PANIC(("eth_freebsd: could not enable immediate mode"));
++    close(this->bpf_fd);
++    this->bpf_fd = -1;
++    return;
++  }
++
+   // Set up non-blocking i/o
+   v = 1;
+   if (ioctl(this->bpf_fd, FIONBIO, &v) < 0) {


More information about the Midnightbsd-cvs mailing list