[802] in linux-net channel archive
What is returned when you do a recvfrom() against a SOCK_PACKET
daemon@ATHENA.MIT.EDU (Nick Simicich)
Sun Jul 30 07:22:40 1995
Date: Sat, 29 Jul 1995 23:28:10 -29900
From: Nick Simicich <njs@scifi.maid.com>
To: linux-net@vger.rutgers.edu
I'm trying to write a program that looks at things that are returned from
a socket opened as follows:
read_socket = socket(PF_INET, SOCK_PACKET, htons(0x0003));
I know that this sees all packets that come into the system, but I really
don't understand what the header might be. I'm getting the packets but I
have no idea how I might interpret them.
Unfortunately, I seem to be completely unable to figure out what that
socket returns. I've looked at the 1.2.11 kernel and tcpdump, and it is
just opaque to me.
Can anyone explain this to me? Is it something fiendishly simple? Or
horribly complex?
Nick Simicich - njs@scifi.emi.net - (last choice) njs@bcrvm1.vnet.ibm.com
http://scifi.emi.net/njs.html -- Stop by and Light Up The World!