Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!mogul From: mogul@wrl.dec.com (Jeffrey Mogul) Newsgroups: comp.unix.ultrix Subject: Re: How to generate a packet filter device driver in Ultrix Message-ID: <1991Feb13.020117.27922@pa.dec.com> Date: 13 Feb 91 02:01:17 GMT References: <28528.27b72f38@kuhub.cc.ukans.edu> Sender: news@pa.dec.com (News) Organization: DEC Western Research Lines: 31 In article <28528.27b72f38@kuhub.cc.ukans.edu> jian@kuhub.cc.ukans.edu writes: >I want to config one of ethernet interfaces on the DEC 3100 running Ultrix >4.1 to be in a promiscous mode. Does anyone have experience with this matter? > >I got some hints from the menu that I need to create a psudo packet filter >device driver first. The command for creating the packet filter device is: > > #MAKEDEV pfilt > >I followed what the menu says. But I could not open the packet filter device >after I created it. I saw there are some pfiltnnn files in the /dev/pf/ >directory. Am I missing something. I would appreciate any helps. You should first of all make sure that your kernel has been built with the proper options: see "man packetfilter(4)". I believe that the default configuration does not include the packetfilter. I'm not quite sure how you intend to use the promiscuous mode support of the packet filter, but quite often people neglect to run /etc/pfconfig +p which is necessary before using a promiscuous-mode application. I put this in my /etc/rc.local; it has absolutely no effect unless a promiscuous-mode application is running. See the manual page. If you want an example of how to write an application, you can obtain the sources for tcpdump or nfswatch from gatekeeper.dec.com via anonymous FTP: pub/net/tcpdump-2.0.tar.Z pub/net/nfs/nfswatch3.0.tar.Z -Jeff