From owner-freebsd-questions@FreeBSD.ORG Thu Jun 26 15:37:50 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D8BD37B401 for ; Thu, 26 Jun 2003 15:37:50 -0700 (PDT) Received: from smtp.monmouth.com (smtp.monmouth.com [209.191.58.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F4B843FF3 for ; Thu, 26 Jun 2003 15:37:49 -0700 (PDT) (envelope-from pechter@shell.monmouth.com) Received: from shell.monmouth.com (shell.monmouth.com [209.191.58.4]) by smtp.monmouth.com (8.12.9/8.12.9) with ESMTP id h5QMbmLD031354 for ; Thu, 26 Jun 2003 18:37:48 -0400 (EDT) Received: (from pechter@localhost) by shell.monmouth.com (8.12.9/8.12.9/Submit) id h5QMbm68008125 for freebsd-questions@freebsd.org; Thu, 26 Jun 2003 18:37:48 -0400 (EDT) Date: Thu, 26 Jun 2003 18:37:48 -0400 From: Bill/Carolyn Pechter To: freebsd-questions@freebsd.org Message-ID: <20030626223748.GA8009@shell.monmouth.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: Can anyone tell me why this bpf code doesn't work with FreeBSD... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Jun 2003 22:37:50 -0000 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 | +---------------------------------------------------------------------------+