ethernet header size
Hadi Rezaee
h.rezaee at ideatech.io
Fri Jan 8 23:09:08 UTC 2016
Hello there,
In some part of my application I need to have the Ethernet header size
(ideally, using sizeof).
Well I guess 'ethhdr' is not exist on FreeBSD, correct ?
According to Linux definition:
struct ethhdr {
unsigned char h_dest[ETH_ALEN];
unsigned char h_source[ETH_ALEN];
unsigned short h_proto;
} __attribute__((packed));
So, assume the ethernet header size is equal to 14, is it going to work
?! :)
and if there is already a definition somewhere in system header files,
so I don't have to define the size myself ?
Thank you
More information about the freebsd-net
mailing list