Date: Wed, 7 Aug 2002 18:02:05 -0400 (EDT) From: FreeBSD Mailing List Info <fbsd@vta.com> To: questions@freebsd.org Subject: RE: Your Mail [ BPF ] Message-ID: <200208072202.SAA60530@mailhub.vta.com>
next in thread | raw e-mail | index | archive | help
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 <lee_h@pannaway.com>
> 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 <net/bpf.h>. 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200208072202.SAA60530>
