Dear All,
In order to avoid libpcap we ran this command first after
loading the pf_ring.ko. We went into the userland/lib
./configure --disable-bpf
make
make install
Then went into /userland/example and tried to make but got this errors
make
gcc -O2 -DHAVE_PF_RING -Wall -I../../kernel -I../../kernel/plugins
-I../lib -I../libpcap-1.1.1-ring -D HAVE_ZERO -O2 pfcount.o
../lib/libpfring.a -lpthread -lnl -lrt -o pfcount
pfcount.o: In function `parse_bpf_filter':
pfcount.c:(.text+0x36a): undefined reference to `pcap_compile_nopcap'
pfcount.o: In function `dummyProcesssPacket':
pfcount.c:(.text+0xa9b): undefined reference to `bpf_filter'
collect2: ld returned 1 exit status
make: *** [pfcount] Error 1
Then tried this command gave a long list of errors now.
gcc -O2 -DHAVE_PF_RING -Wall -I /usr/local/PF_RING-5.6.0/userland/kernel
-I /usr/local/PF_RING-5.6.0/userland/lib -c pfcount1.c -o pfcount1.o
In file included from pfcount1.c:53:
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:42:27: error:
linux/pf_ring.h: No such file or directory
In file included from pfcount1.c:53:
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:98: warning: âstruct
pfring_pkthdrâ declared inside parameter list
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:98: warning: its scope is
only this definition or declaration, which is probably not what you want
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:143: error: expected
specifier-qualifier-list before âpacket_directionâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:314: error:
âMAX_NUM_RX_CHANNELSâ undeclared here (not in a function)
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:325: warning: âstruct
pfring_pkthdrâ declared inside parameter list
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:328: warning: âstruct
pfring_pkthdrâ declared inside parameter list
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:332: error: expected
declaration specifiers or â...â before âhw_filtering_ruleâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:342: warning: âstruct
pfring_pkthdrâ declared inside parameter list
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:347: error: expected
declaration specifiers or â...â before âpacket_directionâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:348: error: expected
declaration specifiers or â...â before âsocket_modeâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:349: error: expected
declaration specifiers or â...â before âcluster_typeâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:359: error: expected
declaration specifiers or â...â before âhash_filtering_ruleâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:361: error: expected
declaration specifiers or â...â before âfiltering_ruleâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:366: error: expected
declaration specifiers or â...â before âhash_filtering_ruleâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:382: error: expected
declaration specifiers or â...â before âvirtual_filtering_device_infoâ
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:405: warning: âstruct
pfring_pkthdrâ declared inside parameter list
In file included from pfcount1.c:53:
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:418: warning: âstruct
pfring_pkthdrâ declared inside parameter list
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:424: warning: âstruct
pfring_pkthdrâ declared inside parameter list
pfcount1.c:190: warning: âstruct pfring_pkthdrâ declared inside parameter
list
pfcount1.c: In function âdrop_packet_ruleâ:
pfcount1.c:191: error: dereferencing pointer to incomplete type
pfcount1.c:195: error: âhash_filtering_ruleâ undeclared (first use in this
function)
pfcount1.c:195: error: (Each undeclared identifier is reported only once
pfcount1.c:195: error: for each function it appears in.)
pfcount1.c:195: error: expected â;â before âruleâ
pfcount1.c:197: error: âruleâ undeclared (first use in this function)
pfcount1.c:200: error: dereferencing pointer to incomplete type
pfcount1.c:201: error: dereferencing pointer to incomplete type
pfcount1.c:202: error: âdont_forward_packet_and_stop_rule_evaluationâ
undeclared (first use in this function)
pfcount1.c:203: error: dereferencing pointer to incomplete type
pfcount1.c:203: error: dereferencing pointer to incomplete type
pfcount1.c:203: warning: left-hand operand of comma expression has no effect
pfcount1.c:204: error: dereferencing pointer to incomplete type
pfcount1.c:204: error: dereferencing pointer to incomplete type
pfcount1.c:204: warning: left-hand operand of comma expression has no effect
pfcount1.c:206: error: too many arguments to function
âpfring_handle_hash_filtering_ruleâ
pfcount1.c:211: error: âfiltering_ruleâ undeclared (first use in this
function)
pfcount1.c:211: error: expected â;â before âruleâ
pfcount1.c:218: error: dereferencing pointer to incomplete type
pfcount1.c:219: error: dereferencing pointer to incomplete type
pfcount1.c:219: warning: left-hand operand of comma expression has no effect
pfcount1.c:220: error: dereferencing pointer to incomplete type
pfcount1.c:222: error: dereferencing pointer to incomplete type
pfcount1.c:222: warning: left-hand operand of comma expression has no effect
pfcount1.c:223: error: dereferencing pointer to incomplete type
pfcount1.c:225: error: too many arguments to function
âpfring_add_filtering_ruleâ
pfcount1.c: At top level:
pfcount1.c:385: warning: âstruct pfring_pkthdrâ declared inside parameter
list
pfcount1.c: In function âdummyProcesssPacketâ:
pfcount1.c:388: error: dereferencing pointer to incomplete type
pfcount1.c:410: error: dereferencing pointer to incomplete type
pfcount1.c:411: error: dereferencing pointer to incomplete type
pfcount1.c:411: error: invalid application of âsizeofâ to incomplete type
âstruct pkt_parsing_infoâ
pfcount1.c:412: warning: passing argument 2 of âpfring_parse_pktâ from
incompatible pointer type
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:423: note: expected âstruct
pfring_pkthdr *â but argument is of type âstruct pfring_pkthdr *â
pfcount1.c:415: error: dereferencing pointer to incomplete type
pfcount1.c:417: error: dereferencing pointer to incomplete type
pfcount1.c:418: error: âpfringâ has no member named âdnaâ
pfcount1.c:418: error: âintel_igb_82580â undeclared (first use in this
function)
pfcount1.c:419: error: dereferencing pointer to incomplete type
pfcount1.c:422: error: dereferencing pointer to incomplete type
pfcount1.c:423: error: dereferencing pointer to incomplete type
pfcount1.c:425: error: dereferencing pointer to incomplete type
pfcount1.c:436: error: dereferencing pointer to incomplete type
pfcount1.c:437: error: dereferencing pointer to incomplete type
pfcount1.c:440: error: dereferencing pointer to incomplete type
pfcount1.c:441: error: dereferencing pointer to incomplete type
pfcount1.c:443: error: dereferencing pointer to incomplete type
pfcount1.c:444: error: dereferencing pointer to incomplete type
pfcount1.c:446: error: dereferencing pointer to incomplete type
pfcount1.c:446: error: dereferencing pointer to incomplete type
pfcount1.c:448: error: dereferencing pointer to incomplete type
pfcount1.c:449: error: dereferencing pointer to incomplete type
pfcount1.c:449: error: dereferencing pointer to incomplete type
pfcount1.c:450: error: dereferencing pointer to incomplete type
pfcount1.c:450: error: dereferencing pointer to incomplete type
pfcount1.c:452: error: dereferencing pointer to incomplete type
pfcount1.c:452: error: dereferencing pointer to incomplete type
pfcount1.c:453: error: dereferencing pointer to incomplete type
pfcount1.c:453: error: dereferencing pointer to incomplete type
pfcount1.c:456: error: dereferencing pointer to incomplete type
pfcount1.c:458: error: dereferencing pointer to incomplete type
pfcount1.c:458: error: âNO_TUNNEL_IDâ undeclared (first use in this
function)
pfcount1.c:460: error: dereferencing pointer to incomplete type
pfcount1.c:461: error: dereferencing pointer to incomplete type
pfcount1.c:463: error: dereferencing pointer to incomplete type
pfcount1.c:465: error: dereferencing pointer to incomplete type
pfcount1.c:466: error: dereferencing pointer to incomplete type
pfcount1.c:468: error: dereferencing pointer to incomplete type
pfcount1.c:469: error: dereferencing pointer to incomplete type
pfcount1.c:472: error: dereferencing pointer to incomplete type
pfcount1.c:473: error: dereferencing pointer to incomplete type
pfcount1.c:475: error: dereferencing pointer to incomplete type
pfcount1.c:476: error: dereferencing pointer to incomplete type
pfcount1.c:481: error: dereferencing pointer to incomplete type
pfcount1.c:482: error: dereferencing pointer to incomplete type
pfcount1.c:483: error: dereferencing pointer to incomplete type
pfcount1.c:486: error: dereferencing pointer to incomplete type
pfcount1.c:489: error: dereferencing pointer to incomplete type
pfcount1.c:493: error: dereferencing pointer to incomplete type
pfcount1.c:493: error: dereferencing pointer to incomplete type
pfcount1.c:493: error: dereferencing pointer to incomplete type
pfcount1.c:494: error: dereferencing pointer to incomplete type
pfcount1.c:495: error: dereferencing pointer to incomplete type
pfcount1.c:496: error: dereferencing pointer to incomplete type
pfcount1.c:497: error: dereferencing pointer to incomplete type
pfcount1.c:504: error: dereferencing pointer to incomplete type
pfcount1.c:504: error: dereferencing pointer to incomplete type
pfcount1.c:511: error: dereferencing pointer to incomplete type
pfcount1.c:517: error: dereferencing pointer to incomplete type
pfcount1.c:518: warning: passing argument 2 of âpfring_parse_pktâ from
incompatible pointer type
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:423: note: expected âstruct
pfring_pkthdr *â but argument is of type âstruct pfring_pkthdr *â
pfcount1.c:520: warning: passing argument 1 of âdrop_packet_ruleâ from
incompatible pointer type
pfcount1.c:190: note: expected âconst struct pfring_pkthdr *â but argument
is of type âconst struct pfring_pkthdr *â
pfcount1.c: In function âpacket_consumer_threadâ:
pfcount1.c:598: error: storage size of âhdrâ isnât known
pfcount1.c:598: warning: unused variable âhdrâ
pfcount1.c: In function âmainâ:
pfcount1.c:664: error: âpacket_directionâ undeclared (first use in this
function)
pfcount1.c:664: error: expected â;â before âdirectionâ
pfcount1.c:729: error: ârx_and_tx_directionâ undeclared (first use in this
function)
pfcount1.c:730: error: ârx_only_directionâ undeclared (first use in this
function)
pfcount1.c:731: error: âtx_only_directionâ undeclared (first use in this
function)
pfcount1.c:732: error: âdirectionâ undeclared (first use in this function)
pfcount1.c:927: error: âcluster_round_robinâ undeclared (first use in this
function)
pfcount1.c:927: error: too many arguments to function âpfring_set_clusterâ
pfcount1.c:931: error: too many arguments to function âpfring_set_directionâ
pfcount1.c:934: error: ârecv_only_modeâ undeclared (first use in this
function)
pfcount1.c:934: error: too many arguments to function
âpfring_set_socket_modeâ
pfcount1.c:967: error: âfiltering_ruleâ undeclared (first use in this
function)
pfcount1.c:967: error: expected â;â before âruleâ
pfcount1.c:972: error: âruleâ undeclared (first use in this function)
pfcount1.c:975: error: âforward_packet_and_stop_rule_evaluationâ undeclared
(first use in this function)
pfcount1.c:980: error: too many arguments to function
âpfring_add_filtering_ruleâ
pfcount1.c:987: error: expected â;â before âruleâ
pfcount1.c:999: warning: left-hand operand of comma expression has no effect
pfcount1.c:1000: warning: left-hand operand of comma expression has no
effect
pfcount1.c:1004: error: too many arguments to function
âpfring_add_filtering_ruleâ
pfcount1.c:1017: warning: left-hand operand of comma expression has no
effect
pfcount1.c:1018: warning: left-hand operand of comma expression has no
effect
pfcount1.c:1021: error: too many arguments to function
âpfring_add_filtering_ruleâ
pfcount1.c:1036: error: âNO_TUNNEL_IDâ undeclared (first use in this
function)
pfcount1.c:1038: error: too many arguments to function
âpfring_add_filtering_ruleâ
pfcount1.c:1057: error: too many arguments to function
âpfring_add_filtering_ruleâ
pfcount1.c:1083: warning: passing argument 2 of âpfring_loopâ from
incompatible pointer type
/usr/local/PF_RING-5.6.0/userland/lib/pfring.h:318: note: expected
âpfringProcesssPacketâ but argument is of type âvoid (*)(const struct
pfring_pkthdr *, const u_char *, const u_char *)â
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc