From owner-freebsd-questions Tue Nov 30 5:49: 3 1999 Delivered-To: freebsd-questions@freebsd.org Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 278F015972 for ; Tue, 30 Nov 1999 05:48:52 -0800 (PST) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.040 #1) id 11snd8-000B5F-00; Tue, 30 Nov 1999 15:47:42 +0200 From: Sheldon Hearn To: "Francis J. Bruening" Cc: "freebsd" Subject: Re: how to determine which process(es) have /dev/bpf0 In-reply-to: Your message of "Mon, 29 Nov 1999 18:54:03 PST." Date: Tue, 30 Nov 1999 15:47:42 +0200 Message-ID: <42608.943969662@axl.noc.iafrica.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 29 Nov 1999 18:54:03 PST, "Francis J. Bruening" wrote: > However when I try to start nmap, I get a msg, /dev/bpf1 not > defined. I have a /dev/bpf0. Why isn't it using that? Not sure. Maybe it's hardcoded to use bpf1? :-) In any case, the more significant question is: > Actually, my question generally, is "how can I determine which > file(s) or devices are associated with a given process... The fstat(1) utility will do what you want: fstat /dev/bpf0 > And I guess I can rebuild my kernel to have more than 1 bpf device. Seldom a bad idea, provided you don't go overboard. :-) Ciao, Sheldon. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message