Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


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

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


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-11-2007, 12:53 AM   #2
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, 06:35 AM   #3
LQ Newbie
Registered: Oct 2007
Posts: 4

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

can anyone respond on this..


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

All times are GMT -5. The time now is 02:19 AM.

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