Welcome! Log In Create A New Profile

Advanced

How to receive packets on a virtual interface?

Posted by MirkoBanchi 
Hi all, i would receive packets that arrives on a physical NIC also on a virtual interface...in particular i need to open a PF_PACKET, SOCK_RAW socket and sniff these packets...i think that by registering a custom L3 protocol handler when the function is called is too late to receive the packet on the socket...Am i wrong? Where is the correct way to realize this?

Thank you all!

Mirko
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 15 plus 3?
Message: