Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Dec 2003 08:56:39 -0500
From:      Steve Bertrand <iaccounts@northnetworks.ca>
To:        niraj kumar <nirajkumar_ait@yahoo.co.in>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: implementation of bpf
Message-ID:  <1072274198.6541.3.camel@ptp.northnetworks.ca>
In-Reply-To: <20031224074509.62197.qmail@web8305.mail.in.yahoo.com>
References:  <20031224074509.62197.qmail@web8305.mail.in.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
First, for the sake of those who use text based email clients, please
set your word wrap in your email program to 72 chars.

> i want to know how to implement a simple bpf filter on the freebsd
> i am using bsd4.7 version and i know the instruction set of the bfp
>virutal  machine but i dont know how to implement that and to check
>whether that particular bpf is working or not so u could explain the
>functioning of bpf with example then i would be thankful to u 

Assuming you are referring bpf to the Berkeley Packet Filter, it should
be compiled in with the standard GENERIC kernel on 4.7. To test this,
simply use the always handy tcpdump command:

# tcpdump -n

This will either barf with a 'bpf: device not configured' or will start
showing you each packet that your default network interface touches.

Merry Christmas!

Steve

>  
>            thank in advance
>                                       
>                       Niraj
> 
> Yahoo! India Matrimony: Find your partner online.Post your profile.
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1072274198.6541.3.camel>