Re: ethernet header size

2016-01-08 Thread Hadi Rezaee
Thank you very much Parhar ;) On 01/09/2016 02:41, Navdeep Parhar wrote: > sizeof(struct ether_header) > > > > On 01/08/2016 15:03, Hadi Rezaee wrote: >> Hello there, >> >> In some part of my application I need to have the Ethernet header size >> (ideally,

Re: ethernet header size

2016-01-08 Thread Navdeep Parhar
sizeof(struct ether_header) On 01/08/2016 15:03, Hadi Rezaee wrote: 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: str

ethernet header size

2016-01-08 Thread Hadi Rezaee
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 charh_dest[ETH_ALEN]; unsigned charh_sourc