Is length of ethernet header necessarily 14?
Posted
by httpinterpret
on Stack Overflow
See other posts from Stack Overflow
or by httpinterpret
Published on 2010-05-09T07:29:53Z
Indexed on
2010/05/09
7:38 UTC
Read the original article
Hit count: 166
Code snippet from here:
/* retireve the position of the ip header */
ih = (ip_header *) (pkt_data +
14); //length of ethernet header
But this image doesn't say it's necessarily 14:
How should I do it properly?
© Stack Overflow or respective owner