implementation of bpf

Steve Bertrand iaccounts at northnetworks.ca
Wed Dec 24 05:57:00 PST 2003


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list