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,

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_source[ETH_ALEN];

pcap and processing packets

2016-01-01 Thread Hadi Rezaee
y dropped ? 2) When i initial pcap with pcap_open_live, and I set "to_ms" (read-timeout) parameter to zero .. I cannot catch a thing ! it has to be more than zero to work .. Is it normal behavior ? Thanks, -- Hadi Rezaee +98 912 1403571 IdeaTech.io ___

Re: problem with tcpdump/netmap

2015-12-21 Thread Hadi Rezaee
Well, it seems the netmap integration with libpcap is only available for FreeBSD-11-CURRENT ? is that correct ? Thanks, On 12/10/2015 23:28, Hadi Rezaee wrote: > Hey there, > > I rebuild my box (FreeBSD 10.2R amd64) with netmap support. > Just to check if everything going well, I

problem with tcpdump/netmap

2015-12-10 Thread Hadi Rezaee
Hey there, I rebuild my box (FreeBSD 10.2R amd64) with netmap support. Just to check if everything going well, I connected my laptop to another machine in same ip range. The problem is when I issue "tcpdump -i netmap:re0" command to capture packets, I see different results but all of them will fai