libdaq 3.0 nfq and afpacket

Y M via Snort-devel <[email protected]> Sun, 28 Jul 2019 19:50:26 +0000
Newsgroups gmane.comp.security.ids.snort.devel
Message-ID <MN2PR17MB3360495D2183A754A9CF2F17A8C20@MN2PR17MB3360.namprd17.prod.outlook.com>
--===============0814260890687113848==
Content-Language: en-US
Content-Type: multipart/alternative;
	boundary="_000_MN2PR17MB3360495D2183A754A9CF2F17A8C20MN2PR17MB3360namp_"

--_000_MN2PR17MB3360495D2183A754A9CF2F17A8C20MN2PR17MB3360namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello,

Trying to get nfq and afpacket to build in libdaq 3.0 but not getting anywh=
ere. The nfq not building might be obvious, but not so much for afpacket. T=
he dependencies appear to be met:

afpacket:

checking pcap.h usability... yes
checking pcap.h presence... yes
checking for pcap.h... yes
checking for pcap_lib_version in -lpcap... yes
checking linux/if_ether.h usability... yes
checking linux/if_ether.h presence... yes
checking for linux/if_ether.h... yes
checking linux/if_packet.h usability... yes
checking linux/if_packet.h presence... yes
checking for linux/if_packet.h... yes
checking whether PACKET_FANOUT_QM is declared... no
checking whether PACKET_QDISC_BYPASS is declared... no
checking whether TP_STATUS_VLAN_TPID_VALID is declared... yes
checking whether IPPROTO_DIVERT is declared... no

nfq:

checking linux/netfilter.h usability... no
checking linux/netfilter.h presence... yes
configure: WARNING: linux/netfilter.h: present but cannot be compiled
configure: WARNING: linux/netfilter.h:     check for missing prerequisite h=
eaders?
configure: WARNING: linux/netfilter.h: see the Autoconf documentation
configure: WARNING: linux/netfilter.h:     section "Present But Cannot Be C=
ompiled"
configure: WARNING: linux/netfilter.h: proceeding with the compiler's resul=
t
configure: WARNING:     ## ----------------------------------- ##
configure: WARNING:     ## Report this to [eradicated]@cisco.com ##
configure: WARNING:     ## ----------------------------------- ##
checking for linux/netfilter.h... no
checking linux/netfilter/nfnetlink_queue.h usability... yes
checking linux/netfilter/nfnetlink_queue.h presence... yes
checking for linux/netfilter/nfnetlink_queue.h... yes

and finally end up with:

Build AFPacket DAQ module.. : no
...
Build NFQ DAQ module....... : no

daq was cloned from github and built with ./configure --libdir=3D/usr/local=
/lib64 on CentOS 7.6. Not sure were I went wrong.

Thank you.
YM

--_000_MN2PR17MB3360495D2183A754A9CF2F17A8C20MN2PR17MB3360namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo=
ttom:0;} </style>
</head>
<body dir=3D"ltr">
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">Hello,</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">Trying to get nfq and afpacket to build in=
 libdaq 3.0 but not getting anywhere. The nfq not building might be obvious=
, but not so much for afpacket. The dependencies appear to be met:</span></=
div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">afpacket:</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 10pt; font-family: Consolas, Courier, monospace;"=
>checking pcap.h usability... yes</span><span><br>
</span>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking pcap.h presence... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking for pcap.h... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking for pcap_lib_version in -lpcap... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking linux/if_ether.h usability... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking linux/if_ether.h presence... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking for linux/if_ether.h... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking linux/if_packet.h usability... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking linux/if_packet.h presence... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking for linux/if_packet.h... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking whether PACKET_FANOUT_QM is declared... no</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking whether PACKET_QDISC_BYPASS is declared... no</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking whether TP_STATUS_VLAN_TPID_VALID is declared... yes</span><=
br>
</div>
<span style=3D"font-size: 10pt; font-family: Consolas, Courier, monospace;"=
>checking whether IPPROTO_DIVERT is declared... no</span><br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">nfq:</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 10pt; font-family: Consolas, Courier, monospace;"=
>checking linux/netfilter.h usability... no</span><span><br>
</span>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking linux/netfilter.h presence... yes</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: linux/netfilter.h: present but cannot be compiled=
</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: linux/netfilter.h: &nbsp; &nbsp; check for missin=
g prerequisite headers?</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: linux/netfilter.h: see the Autoconf documentation=
</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: linux/netfilter.h: &nbsp; &nbsp; section &quot;Pr=
esent But Cannot Be Compiled&quot;</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: linux/netfilter.h: proceeding with the compiler's=
 result</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: &nbsp; &nbsp; ## --------------------------------=
--- ##</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: &nbsp; &nbsp; ## Report this to [eradicated]@cisc=
o.com ##</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">configure: WARNING: &nbsp; &nbsp; ## --------------------------------=
--- ##</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking for linux/netfilter.h... no</span><br>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking linux/netfilter/nfnetlink_queue.h usability... yes</span><br=
>
</div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">checking linux/netfilter/nfnetlink_queue.h presence... yes</span><br>
</div>
<span style=3D"font-size: 10pt; font-family: Consolas, Courier, monospace;"=
>checking for linux/netfilter/nfnetlink_queue.h... yes</span><br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">and finally end up with:</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span><br>
</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monos=
pace;">Build AFPacket DAQ module.. : no</span><span><br>
</span>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">...</span></div>
<div><span style=3D"font-size: 10pt; font-family: Consolas, Courier, monosp=
ace;">Build NFQ DAQ module....... : no</span><br>
</div>
<span></span><br>
</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">daq was cloned from github and built with&=
nbsp;</span><span style=3D"font-size: 10pt; font-family: Consolas, Courier,=
 monospace;">./configure --libdir=3D/usr/local/lib64</span><span style=3D"f=
ont-size: 11pt;"> on CentOS 7.6. Not sure were
 I went wrong.</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<br>
</div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">Thank you.</span></div>
<div style=3D"font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;=
 color: rgb(0, 0, 0);">
<span style=3D"font-size: 11pt;">YM</span></div>
</body>
</html>

--_000_MN2PR17MB3360495D2183A754A9CF2F17A8C20MN2PR17MB3360namp_--

--===============0814260890687113848==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Snort-devel mailing list
[email protected]
https://lists.snort.org/mailman/listinfo/snort-devel

Please visit http://blog.snort.org for the latest news about Snort!

--===============0814260890687113848==--