In article <(E-Mail Removed)> , linux.lover wrote:
In answer to your _subject_ line - 65536 ('type' is a 16 bit field in both
RFC894 and the little used RFC1042). However, not all types are assigned.
See
http://www.iana.org/assignments/ethernet-numbers
>I have added some debug statements in linux kernel 2.4.24 in
>/usr/src/linux/net/core/dev.c
I don't have the source installed, but something appears to be drastically
wrong with your output. Either you have a transcription error when posting,
or your offsets to the data are wrong.
>I want to know which are these packet types?
I'd suggest running tcpdump along side your code until you are sure you
are grabbing the right bits out of the headers.
>I know only values 8 for IP and 2054 for ARP packets then which are
>these packets 1024,1544.
That makes no sense at all. There is no ethernet type 8. The '2054' would
be a decimal value to the 'type 0x0806' which is an ARP packet. There is
no type 1024 or 1544 in either decimal or hex. IP datagrams (actually IPv4)
have type 0x0800 or 2048 decimal.
Old guy