LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 10-10-2007, 06:49 AM   #1
can26_manish
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Rep: Reputation: 0
A packet filter using libipq which uses ether type field to capture the packet


Hello!!

This is my first post in this forum and I hope to get a reply as it is important and I m stuck.
I have to make a packet filter which captures PPPoE packet into a queue or buffer , read the packet content from the buffer and then do some manipulations in the packet content and then again send out the packet from the same interface. I cant use libpcap as it just takes a copy of the incoming packets and has no control over the packets coming and going.
I was trying with libipq but then this I believe is for IP packets. I can capture the packet based on the MAC address with this libipq but I am not very sure whether it removes the ethernet header while queing.

Can you suggest me a pointer to start from here.
 
Old 10-10-2007, 11:53 PM   #2
can26_manish
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
I am waiting for reply.....can anybody help...plz
 
Old 10-16-2007, 05:35 AM   #3
can26_manish
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Rep: Reputation: 0
Is this too easy...

can anyone respond on this..
 
  


Reply

Tags
based, ethernet, field, filter, header, libipq, packet, type, using


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Userspace packet queuing with libipq: ip_conntrack does not defragment? DaneelGiskard Programming 2 05-11-2007 01:20 AM
Packet Filter to redirect a packet to a user level process akawale Linux - Networking 3 09-01-2006 12:06 PM
how do i read the data in the packet that i have captured after packet capture? gajaykrishnan Programming 23 04-19-2006 05:09 AM
packet reordering and delay using libipq shinkm Linux - Networking 0 09-08-2004 12:22 AM
IP Packet filter doraiashok Programming 2 02-26-2004 11:21 AM


All times are GMT -5. The time now is 12:04 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration