LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   A packet filter using libipq which uses ether type field to capture the packet (https://www.linuxquestions.org/questions/programming-9/a-packet-filter-using-libipq-which-uses-ether-type-field-to-capture-the-packet-590765/)

can26_manish 10-10-2007 06:49 AM

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. :scratch:

can26_manish 10-10-2007 11:53 PM

I am waiting for reply.....can anybody help...plz

can26_manish 10-16-2007 05:35 AM

Is this too easy...

can anyone respond on this..


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