Hi Phil
On Feb 2, 2012, at 12:58 PM, Phil Sutter wrote:
> Luca,
>
> On Wed, Feb 01, 2012 at 10:33:25PM +0100, Luca Deri wrote:
>> some time ago we have fixed issues like the one you pointed out. Did you use
>> the SVN PF_RING code? Are you using DNA or standard PF_RING?
>
> We originally noticed the problem with 5.2.1, but it happens with trunk,
> too. DNA is not in use.
>
> In pf_ring.h, there is this comment above struct pfring_pkthdr:
> | Keep 'struct pfring_pkthdr' in sync with 'struct pcap_pkthdr'
> which is why I mentioned pcap compatibility in my first mail. Could you
> elaborate on this? Having to keep kernel structs in sync with ones used
The PF_RING header is a subset of the pcap header. So whathever we do on the
header must be added after the pcap header
struct pfring_pkthdr {
/* pcap header */
struct timeval ts; /* time stamp */
u_int32_t caplen; /* length of portion present */
u_int32_t len; /* length this packet (off wire) */
struct pfring_extended_pkthdr extended_hdr; /* PF_RING extended header */
};
Basically the red part must be after the blue part.
Bottom line
- I have just committed a change that might cause issues mixing 32-64
environments
- please let me know any issues you might find and how to reproduce it
and we'll address them
Cheers Luca
> in userspace only is quite a bummer (at least to this problem).
>
> Best wishes, Phil
>
>
> Phil Sutter
> Software Engineer
>
> --
> Viprinet GmbH
> Mainzer Str. 43
> 55411 Bingen am Rhein
> Germany
>
> Phone/Zentrale: +49-6721-49030-0
> Direct line/Durchwahl: +49-6721-49030-134
> Fax: +49-6721-49030-209
>
> [email protected]
> http://www.viprinet.com
>
> Registered office/Sitz der Gesellschaft: Bingen am Rhein
> Commercial register/Handelsregister: Amtsgericht Mainz HRB40380
> CEO/Geschäftsführer: Simon Kissel
> _______________________________________________
> Ntop-dev mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop-dev
_______________________________________________
Ntop-dev mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-dev