From owner-freebsd-questions Thu Aug 8 4:10:35 2002 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 1553F37B400 for ; Thu, 8 Aug 2002 04:10:33 -0700 (PDT) Received: from mailhub.vta.com (vta.com [208.199.187.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8544943E6A for ; Thu, 8 Aug 2002 04:10:32 -0700 (PDT) (envelope-from fbsd@vta.com) Received: (from fbsd@localhost) by mailhub.vta.com (8.9.3/8.9.3) id SAA60530 for questions@freebsd.org; Wed, 7 Aug 2002 18:02:05 -0400 (EDT) (envelope-from fbsd@vta.com) Date: Wed, 7 Aug 2002 18:02:05 -0400 (EDT) From: FreeBSD Mailing List Info Message-Id: <200208072202.SAA60530@mailhub.vta.com> To: questions@freebsd.org Subject: RE: Your Mail [ BPF ] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Subject: Re: your mail [ BPF ] On Wed, 7 Aug 2002, Heewon Lee wrote: > Date: Wed, 7 Aug 2002 16:32:35 -0400 > From: Heewon Lee > To: freebsd-questions@FreeBSD.ORG > > Hi, > > > > Is any type of Packet Filter implemented in FreeBSD? Perhaps BPF? > > If so, which version? > > > > Thanks, > > -Heewon > man bpf | col -b | grep -A 18 BIOCVERSION BIOCVERSION (struct bpf_version) Returns the major and minor version numbers of the filter language currently recognized by the kernel. Before installing a filter, applications must check that the current version is compatible with the run- ning kernel. Version numbers are compatible if the major numbers match and the application minor is less than or equal to the kernel minor. The kernel version number is returned in the following structure: struct bpf_version { u_short bv_major; u_short bv_minor; }; The current version numbers are given by BPF_MAJOR_VERSION and BPF_MINOR_VERSION from . An incompatible filter may result in undefined behavior (most likely, an error returned by ioctl() or haphazard packet matching). HTH /* * Guy F. Boyd * VTA Technologies * Atlanta, Georgia U.S.A * www.vta.com */ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message