LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-19-2004, 08:30 AM   #1
docterling
LQ Newbie
 
Registered: Apr 2004
Posts: 13

Rep: Reputation: 0
About BPF(BSD Packet Filter)


Dose anyone has the complete information about BPF,cause my work need to know well about it.
Thx very much.

Last edited by docterling; 05-20-2004 at 02:56 AM.
 
Old 05-19-2004, 12:29 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Don't you mean bpf? Google is your friend there, or a bookstore would be an even better friend. TCP/IP Illustrated, Volume 1: The Protocols has some very good information about bpf. Since it's used in just about every major networking monitoring or manipulation application there is a lot of information available on the web.

Last edited by chort; 05-19-2004 at 12:30 PM.
 
Old 05-19-2004, 11:04 PM   #3
docterling
LQ Newbie
 
Registered: Apr 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Thx for you reply,but I don't have much time(only 10 days left),so come here for help
 
Old 05-20-2004, 12:40 AM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
By the way, it's Berkley Packet Filter.

Linux Questions doesn't exist for us to do your homework for you. If you're trying to get something setup and you're getting errors or need some advice, you will find tons of help here. If you want to sit there and give us your assignment and ask the LQ members to do your work for you, well that is not going to happen.

We will be very happy to help explain answers to specific questions. If you have something more specific than "tell me everything about ____" then we can help.

By the way, 10 days is tons of time to read. You could finish a small book in 10 days, or read dozens of websites. Do yourself a favor and do some reading so you know what questions to ask.

Last edited by chort; 05-20-2004 at 12:41 AM.
 
Old 05-20-2004, 02:05 AM   #5
docterling
LQ Newbie
 
Registered: Apr 2004
Posts: 13

Original Poster
Rep: Reputation: 0
MY dissertation's to capture packets and analyse them under Linux(I use RedHat now),just like the TCPDUMP(I don't think mine is like it,it's huge for me,and I don't have enough time).
At the beginning,I read the books I think which would help me to finish my dissertation like :
TCP/IP Illustrated, Volume 1: The Protocols,
TCP/IP Illustrated,Volume 2:The Implementation(not finish)
UNIX Network Programming Volume 1(not finish)
Beginning LINUX Programming 2nd Edition
Linux Socket Programming by Example
Advanced Linux Programming
Advanced Programming in the UNIX Environment(not finish)
When I prepair to start my dissertation and want to use BPF,But I found the BPF's used under Unix not Linux,oh god.That means no BPF device in my Linux system,and is that means if I want to use it and I must firt install it(I have bpf.c, bpf.h, bpf_compat.h, bpf_filter.c, bpfdesc.h which from 4.4BSD-Lite.tar.gz)
Some guys suggest me to use the SOCK_RAW.But I know little about it.
So I want to use BPF to implement it though I am use Linux.Is that possible???
Or could I just add "pseudo-device bpfilter 4" to my kernel and recompile it?
Does it work?

Last edited by docterling; 05-20-2004 at 02:54 AM.
 
Old 05-20-2004, 07:59 AM   #6
docterling
LQ Newbie
 
Registered: Apr 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Now I know Linux also has "BPF",it call LPF(Linux Packet Filter:Ethertap),but the GENERIC kernel does not has in it,so I must recompile a new kernel,a alternative would be to use a raw socket to send data and
use libpcap to receive it,and I decide to use this to complete my dissertation.
Anyway thank you chort.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
open bsd packet filter and dynamic ip's kinasz *BSD 6 05-09-2004 01:06 PM
packet filter firewall naveenpurswani Programming 2 03-29-2004 02:54 PM
IP Packet filter doraiashok Programming 2 02-26-2004 11:21 AM
Invisible BSD Filter Grazz Linux - Networking 0 03-04-2003 07:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:23 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration