Date: Thu, 26 Jun 2003 18:37:48 -0400 From: Bill/Carolyn Pechter <pechter@shell.monmouth.com> To: freebsd-questions@freebsd.org Subject: Can anyone tell me why this bpf code doesn't work with FreeBSD... Message-ID: <20030626223748.GA8009@shell.monmouth.com>
next in thread | raw e-mail | index | archive | help
I'm trying to get VAX emulation running on FreeBSD using simh from http://simh.trailing-edge.com/ The code has hooks for NetBSD and OpenBSD and Linux (uses libpcap on *BSD). The code from the simh v3.0 simulator is as follows: #if defined (__NetBSD__) || defined(__OpenBSD__) dev->handle = (void*) pcap_open_live(savname, bufsz, ETH_PROMISC, -1, errbuf); #endif /* (__NetBSD__) || defined(__OpenBSD__) */ What's needed to get this to work on FreeBSD. It appears in it's default config to be unable to open the ethernet, even though it sees fxp0. If I change the -1 to 1000 (picked this idea up from the tcpdump code in src/contrib/tcpdump) it appears to open -- but nothing is passed. (I used tcpdump to test if the VAX packets were getting out). Any suggestions -- please? I'm really looking forward to accessing the pseudo Vax over telnet... Bill Pechter -- +---------------------------------------------------------------------------+ | Bill and/or Carolyn Pechter | pechter@shell.monmouth.com | | Bill Gates is a Persian cat and a monocle away from being a villain in | | a James Bond movie -- Dennis Miller | +---------------------------------------------------------------------------+
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030626223748.GA8009>