How to get the IP header of packet going through an interface
Hello every one.
I have setup a computer with two interfaces, and I use that as a router for my small LAN. I want to write a program to records all the host that going through the interface that connect to the Internet.
So I think I need an API that report back the headers of those IP packets that going through an interface. I made several searchs through the program networking materials, but I cannot find the right one.
So if anyone knows of such an API, please tell me.
Thank you very much in advance.
|