Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: NTop: Misc

PF_RING DAQ with Snort 2.9.3 compile errors

 

 

NTop misc RSS feed   Index | Next | Previous | View Threaded


vineyard at tuffmail

Jul 22, 2012, 9:28 PM

Post #1 of 8 (774 views)
Permalink
PF_RING DAQ with Snort 2.9.3 compile errors

Hello,

I am trying to build the current PF_RING DAQ module from SVN trunk, and
after fixing a typo in the configure.ac file (it was searching for
libpcap.a and libpfring.a in hard-coded locations instead of honoring
the paths passed in to ./configure), I am encountering errors when
compiling against the DAQ 1.1.1 library that ships with Snort 2.9.3.

The relevant messages from gcc are as follows:

daq_pfring.c: In function 'pfring_daq_acquire':
daq_pfring.c:577:10: error: 'DAQ_PktHdr_t' has no member named
'device_index'
daq_pfring.c: In function 'pfring_daq_inject':
daq_pfring.c:669:39: error: 'DAQ_PktHdr_t' has no member named
'device_index'

Looking at the daq_common.h header file from the DAQ 1.1.1 distribution,
it appears that the "device_index" field has been split out into
"ingress_index" and "egress_index":

typedef struct _daq_pkthdr
{
struct timeval ts; /* Timestamp */
uint32_t caplen; /* Length of the portion present */
uint32_t pktlen; /* Length of this packet (off wire) */
int32_t ingress_index; /* Index of the inbound interface. */
int32_t egress_index; /* Index of the outbound interface. */
int32_t ingress_group; /* Index of the inbound group. */
int32_t egress_group; /* Index of the outbound group. */
uint32_t flags; /* Flags for the packet (DAQ_PKT_FLAG_*) */
uint32_t opaque; /* Opaque context value from the DAQ module
or underlying hardware.
Directly related to the opaque value in
FlowStats. */
void *priv_ptr; /* Private data pointer */
} DAQ_PktHdr_t;


Before I go too deep down this rabbit-hole, are there any planned fixes
or workarounds for this issue?

Thanks,
Robert Vineyard
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


cardigliano at ntop

Jul 24, 2012, 12:10 AM

Post #2 of 8 (744 views)
Permalink
Re: PF_RING DAQ with Snort 2.9.3 compile errors [In reply to]

Hi Robert
we will update the PF_RING-DAQ module for supporting latest DAQ as soon as possible.

Best Regards
Alfredo

On Jul 23, 2012, at 6:28 AM, Robert Vineyard wrote:

> Hello,
>
> I am trying to build the current PF_RING DAQ module from SVN trunk, and after fixing a typo in the configure.ac file (it was searching for libpcap.a and libpfring.a in hard-coded locations instead of honoring the paths passed in to ./configure), I am encountering errors when compiling against the DAQ 1.1.1 library that ships with Snort 2.9.3.
>
> The relevant messages from gcc are as follows:
>
> daq_pfring.c: In function 'pfring_daq_acquire':
> daq_pfring.c:577:10: error: 'DAQ_PktHdr_t' has no member named 'device_index'
> daq_pfring.c: In function 'pfring_daq_inject':
> daq_pfring.c:669:39: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>
> Looking at the daq_common.h header file from the DAQ 1.1.1 distribution, it appears that the "device_index" field has been split out into "ingress_index" and "egress_index":
>
> typedef struct _daq_pkthdr
> {
> struct timeval ts; /* Timestamp */
> uint32_t caplen; /* Length of the portion present */
> uint32_t pktlen; /* Length of this packet (off wire) */
> int32_t ingress_index; /* Index of the inbound interface. */
> int32_t egress_index; /* Index of the outbound interface. */
> int32_t ingress_group; /* Index of the inbound group. */
> int32_t egress_group; /* Index of the outbound group. */
> uint32_t flags; /* Flags for the packet (DAQ_PKT_FLAG_*) */
> uint32_t opaque; /* Opaque context value from the DAQ module or underlying hardware.
> Directly related to the opaque value in FlowStats. */
> void *priv_ptr; /* Private data pointer */
> } DAQ_PktHdr_t;
>
>
> Before I go too deep down this rabbit-hole, are there any planned fixes or workarounds for this issue?
>
> Thanks,
> Robert Vineyard
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


vineyard at tuffmail

Jul 24, 2012, 5:56 AM

Post #3 of 8 (736 views)
Permalink
Re: PF_RING DAQ with Snort 2.9.3 compile errors [In reply to]

Excellent!

Thank you very much for the quick response. In the meantime, do you know
anywhere to download the most recent release of Snort that supported by
the current version of PF_RING?

It seems that Sourcefire only offers links to download the latest
version (2.9.3)...

Thanks,
Robert


On 07/24/2012 03:10 AM, Alfredo Cardigliano wrote:
> Hi Robert
> we will update the PF_RING-DAQ module for supporting latest DAQ as soon as possible.
>
> Best Regards
> Alfredo
>
> On Jul 23, 2012, at 6:28 AM, Robert Vineyard wrote:
>
>> Hello,
>>
>> I am trying to build the current PF_RING DAQ module from SVN trunk, and after fixing a typo in the configure.ac file (it was searching for libpcap.a and libpfring.a in hard-coded locations instead of honoring the paths passed in to ./configure), I am encountering errors when compiling against the DAQ 1.1.1 library that ships with Snort 2.9.3.
>>
>> The relevant messages from gcc are as follows:
>>
>> daq_pfring.c: In function 'pfring_daq_acquire':
>> daq_pfring.c:577:10: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>> daq_pfring.c: In function 'pfring_daq_inject':
>> daq_pfring.c:669:39: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>>
>> Looking at the daq_common.h header file from the DAQ 1.1.1 distribution, it appears that the "device_index" field has been split out into "ingress_index" and "egress_index":
>>
>> typedef struct _daq_pkthdr
>> {
>> struct timeval ts; /* Timestamp */
>> uint32_t caplen; /* Length of the portion present */
>> uint32_t pktlen; /* Length of this packet (off wire) */
>> int32_t ingress_index; /* Index of the inbound interface. */
>> int32_t egress_index; /* Index of the outbound interface. */
>> int32_t ingress_group; /* Index of the inbound group. */
>> int32_t egress_group; /* Index of the outbound group. */
>> uint32_t flags; /* Flags for the packet (DAQ_PKT_FLAG_*) */
>> uint32_t opaque; /* Opaque context value from the DAQ module or underlying hardware.
>> Directly related to the opaque value in FlowStats. */
>> void *priv_ptr; /* Private data pointer */
>> } DAQ_PktHdr_t;
>>
>>
>> Before I go too deep down this rabbit-hole, are there any planned fixes or workarounds for this issue?
>>
>> Thanks,
>> Robert Vineyard
>> _______________________________________________
>> Ntop-misc mailing list
>> Ntop-misc [at] listgateway
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


cardigliano at ntop

Jul 24, 2012, 6:13 AM

Post #4 of 8 (739 views)
Permalink
Re: PF_RING DAQ with Snort 2.9.3 compile errors [In reply to]

Robert
have a look here: http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.2.3/

Alfredo

On Jul 24, 2012, at 2:56 PM, Robert Vineyard wrote:

> Excellent!
>
> Thank you very much for the quick response. In the meantime, do you know anywhere to download the most recent release of Snort that supported by the current version of PF_RING?
>
> It seems that Sourcefire only offers links to download the latest version (2.9.3)...
>
> Thanks,
> Robert
>
>
> On 07/24/2012 03:10 AM, Alfredo Cardigliano wrote:
>> Hi Robert
>> we will update the PF_RING-DAQ module for supporting latest DAQ as soon as possible.
>>
>> Best Regards
>> Alfredo
>>
>> On Jul 23, 2012, at 6:28 AM, Robert Vineyard wrote:
>>
>>> Hello,
>>>
>>> I am trying to build the current PF_RING DAQ module from SVN trunk, and after fixing a typo in the configure.ac file (it was searching for libpcap.a and libpfring.a in hard-coded locations instead of honoring the paths passed in to ./configure), I am encountering errors when compiling against the DAQ 1.1.1 library that ships with Snort 2.9.3.
>>>
>>> The relevant messages from gcc are as follows:
>>>
>>> daq_pfring.c: In function 'pfring_daq_acquire':
>>> daq_pfring.c:577:10: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>>> daq_pfring.c: In function 'pfring_daq_inject':
>>> daq_pfring.c:669:39: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>>>
>>> Looking at the daq_common.h header file from the DAQ 1.1.1 distribution, it appears that the "device_index" field has been split out into "ingress_index" and "egress_index":
>>>
>>> typedef struct _daq_pkthdr
>>> {
>>> struct timeval ts; /* Timestamp */
>>> uint32_t caplen; /* Length of the portion present */
>>> uint32_t pktlen; /* Length of this packet (off wire) */
>>> int32_t ingress_index; /* Index of the inbound interface. */
>>> int32_t egress_index; /* Index of the outbound interface. */
>>> int32_t ingress_group; /* Index of the inbound group. */
>>> int32_t egress_group; /* Index of the outbound group. */
>>> uint32_t flags; /* Flags for the packet (DAQ_PKT_FLAG_*) */
>>> uint32_t opaque; /* Opaque context value from the DAQ module or underlying hardware.
>>> Directly related to the opaque value in FlowStats. */
>>> void *priv_ptr; /* Private data pointer */
>>> } DAQ_PktHdr_t;
>>>
>>>
>>> Before I go too deep down this rabbit-hole, are there any planned fixes or workarounds for this issue?
>>>
>>> Thanks,
>>> Robert Vineyard
>>> _______________________________________________
>>> Ntop-misc mailing list
>>> Ntop-misc [at] listgateway
>>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>
>> _______________________________________________
>> Ntop-misc mailing list
>> Ntop-misc [at] listgateway
>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>

_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


vineyard at tuffmail

Jul 24, 2012, 6:18 AM

Post #5 of 8 (756 views)
Permalink
Re: PF_RING DAQ with Snort 2.9.3 compile errors [In reply to]

Great! I was not aware of this sourceforge mirror of their older releases.

I didn't have any immediate need for anything in 2.9.3 specifically,
just a working Snort / PF_RING setup. I think this should give me enough
to work with in the time being.

Thank you very much, I will do my testing with this version until 2.9.3
is fully supported in PF_RING.

Kind regards,
Robert


On 07/24/2012 09:13 AM, Alfredo Cardigliano wrote:
> Robert
> have a look here: http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.2.3/
>
> Alfredo
>
> On Jul 24, 2012, at 2:56 PM, Robert Vineyard wrote:
>
>> Excellent!
>>
>> Thank you very much for the quick response. In the meantime, do you know anywhere to download the most recent release of Snort that supported by the current version of PF_RING?
>>
>> It seems that Sourcefire only offers links to download the latest version (2.9.3)...
>>
>> Thanks,
>> Robert
>>
>>
>> On 07/24/2012 03:10 AM, Alfredo Cardigliano wrote:
>>> Hi Robert
>>> we will update the PF_RING-DAQ module for supporting latest DAQ as soon as possible.
>>>
>>> Best Regards
>>> Alfredo
>>>
>>> On Jul 23, 2012, at 6:28 AM, Robert Vineyard wrote:
>>>
>>>> Hello,
>>>>
>>>> I am trying to build the current PF_RING DAQ module from SVN trunk, and after fixing a typo in the configure.ac file (it was searching for libpcap.a and libpfring.a in hard-coded locations instead of honoring the paths passed in to ./configure), I am encountering errors when compiling against the DAQ 1.1.1 library that ships with Snort 2.9.3.
>>>>
>>>> The relevant messages from gcc are as follows:
>>>>
>>>> daq_pfring.c: In function 'pfring_daq_acquire':
>>>> daq_pfring.c:577:10: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>>>> daq_pfring.c: In function 'pfring_daq_inject':
>>>> daq_pfring.c:669:39: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>>>>
>>>> Looking at the daq_common.h header file from the DAQ 1.1.1 distribution, it appears that the "device_index" field has been split out into "ingress_index" and "egress_index":
>>>>
>>>> typedef struct _daq_pkthdr
>>>> {
>>>> struct timeval ts; /* Timestamp */
>>>> uint32_t caplen; /* Length of the portion present */
>>>> uint32_t pktlen; /* Length of this packet (off wire) */
>>>> int32_t ingress_index; /* Index of the inbound interface. */
>>>> int32_t egress_index; /* Index of the outbound interface. */
>>>> int32_t ingress_group; /* Index of the inbound group. */
>>>> int32_t egress_group; /* Index of the outbound group. */
>>>> uint32_t flags; /* Flags for the packet (DAQ_PKT_FLAG_*) */
>>>> uint32_t opaque; /* Opaque context value from the DAQ module or underlying hardware.
>>>> Directly related to the opaque value in FlowStats. */
>>>> void *priv_ptr; /* Private data pointer */
>>>> } DAQ_PktHdr_t;
>>>>
>>>>
>>>> Before I go too deep down this rabbit-hole, are there any planned fixes or workarounds for this issue?
>>>>
>>>> Thanks,
>>>> Robert Vineyard
>>>> _______________________________________________
>>>> Ntop-misc mailing list
>>>> Ntop-misc [at] listgateway
>>>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>>
>>> _______________________________________________
>>> Ntop-misc mailing list
>>> Ntop-misc [at] listgateway
>>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>>
>
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


peter.bates at ucl

Jul 24, 2012, 6:30 AM

Post #6 of 8 (753 views)
Permalink
Re: PF_RING DAQ with Snort 2.9.3 compile errors [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello all

On 24/07/2012 14:18, Robert Vineyard wrote:
> I didn't have any immediate need for anything in 2.9.3
> specifically, just a working Snort / PF_RING setup. I think this
> should give me enough to work with in the time being.
>
> Thank you very much, I will do my testing with this version until
> 2.9.3 is fully supported in PF_RING.

Just FYI - Snort 2.9.3 builds and runs
fine against the older DAQ library (0.6.2).

I'm presuming they bumped the version because they updated some of the
individual modules (af_packet, etc.) and not the library itself.

- --
Peter Bates
Senior Computer Security Officer Phone: +44(0)2076792049
Information Services Division Internal Ext: 32049
University College London
London WC1E 6BT
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.17 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQDqNzAAoJELhVoVpEMS6Rm+YH/3CJR8XL6Vi99w5CBrsB9yaF
/LQ06E4w7NhkdY9nwEjDD/9K5Zn9yTMEy5z5naaUknKX3MNrh+M9S96wWqXkPUkh
YrDxONE7ss0h4Ffz79x7+O51GhLqbvCP/f49bicE4edbIFQd/AIDHJPOauXrm/SW
1MMrYl0Eq53C19Y+0Skjn8YUnSTe4jcFE83taw4I2HMoI/prDZYBSlu+KPVYg1Ie
kTcEFd4KJGm6m61H1VC/um9R18ZWwz9lvRAqma7dqrmpqCpcxLzmaSjD7SXpefBu
6WZK1Ffj4UHNZJ1OjKltdHT6fLUMnFUqZFwWoSKnnwg3d11J06xpLFA5deSxTWw=
=7wan
-----END PGP SIGNATURE-----

_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


deri at ntop

Jul 25, 2012, 1:33 AM

Post #7 of 8 (753 views)
Permalink
Re: PF_RING DAQ with Snort 2.9.3 compile errors [In reply to]

Robert,
we have just committed the fix for the new DAQ 1.1.1. Please resync. DAQ 0.6.2 is now unsupported.

Regards Luca

On Jul 24, 2012, at 3:13 PM, Alfredo Cardigliano wrote:

> Robert
> have a look here: http://sourceforge.net/projects/snort.mirror/files/Snort%202.9.2.3/
>
> Alfredo
>
> On Jul 24, 2012, at 2:56 PM, Robert Vineyard wrote:
>
>> Excellent!
>>
>> Thank you very much for the quick response. In the meantime, do you know anywhere to download the most recent release of Snort that supported by the current version of PF_RING?
>>
>> It seems that Sourcefire only offers links to download the latest version (2.9.3)...
>>
>> Thanks,
>> Robert
>>
>>
>> On 07/24/2012 03:10 AM, Alfredo Cardigliano wrote:
>>> Hi Robert
>>> we will update the PF_RING-DAQ module for supporting latest DAQ as soon as possible.
>>>
>>> Best Regards
>>> Alfredo
>>>
>>> On Jul 23, 2012, at 6:28 AM, Robert Vineyard wrote:
>>>
>>>> Hello,
>>>>
>>>> I am trying to build the current PF_RING DAQ module from SVN trunk, and after fixing a typo in the configure.ac file (it was searching for libpcap.a and libpfring.a in hard-coded locations instead of honoring the paths passed in to ./configure), I am encountering errors when compiling against the DAQ 1.1.1 library that ships with Snort 2.9.3.
>>>>
>>>> The relevant messages from gcc are as follows:
>>>>
>>>> daq_pfring.c: In function 'pfring_daq_acquire':
>>>> daq_pfring.c:577:10: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>>>> daq_pfring.c: In function 'pfring_daq_inject':
>>>> daq_pfring.c:669:39: error: 'DAQ_PktHdr_t' has no member named 'device_index'
>>>>
>>>> Looking at the daq_common.h header file from the DAQ 1.1.1 distribution, it appears that the "device_index" field has been split out into "ingress_index" and "egress_index":
>>>>
>>>> typedef struct _daq_pkthdr
>>>> {
>>>> struct timeval ts; /* Timestamp */
>>>> uint32_t caplen; /* Length of the portion present */
>>>> uint32_t pktlen; /* Length of this packet (off wire) */
>>>> int32_t ingress_index; /* Index of the inbound interface. */
>>>> int32_t egress_index; /* Index of the outbound interface. */
>>>> int32_t ingress_group; /* Index of the inbound group. */
>>>> int32_t egress_group; /* Index of the outbound group. */
>>>> uint32_t flags; /* Flags for the packet (DAQ_PKT_FLAG_*) */
>>>> uint32_t opaque; /* Opaque context value from the DAQ module or underlying hardware.
>>>> Directly related to the opaque value in FlowStats. */
>>>> void *priv_ptr; /* Private data pointer */
>>>> } DAQ_PktHdr_t;
>>>>
>>>>
>>>> Before I go too deep down this rabbit-hole, are there any planned fixes or workarounds for this issue?
>>>>
>>>> Thanks,
>>>> Robert Vineyard
>>>> _______________________________________________
>>>> Ntop-misc mailing list
>>>> Ntop-misc [at] listgateway
>>>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>>
>>> _______________________________________________
>>> Ntop-misc mailing list
>>> Ntop-misc [at] listgateway
>>> http://listgateway.unipi.it/mailman/listinfo/ntop-misc
>>>
>
> _______________________________________________
> Ntop-misc mailing list
> Ntop-misc [at] listgateway
> http://listgateway.unipi.it/mailman/listinfo/ntop-misc

---
We can't solve problems by using the same kind of thinking we used when we created them - Albert Einstein

_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc


vineyard at tuffmail

Jul 25, 2012, 5:33 AM

Post #8 of 8 (736 views)
Permalink
Re: PF_RING DAQ with Snort 2.9.3 compile errors [In reply to]

On 07/25/2012 04:33 AM, Luca Deri wrote:
> we have just committed the fix for the new DAQ 1.1.1. Please resync. DAQ 0.6.2 is now unsupported.

Works like a champ. Thanks Luca!

--Robert
_______________________________________________
Ntop-misc mailing list
Ntop-misc [at] listgateway
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

NTop misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.