Dear All,
           I am very new to pf_ring. So I could run ./pfcount and ./pcount as 
this method. So now I copied pfcount and saved as pftry1. I tried to compile I 
get this.
 
gcc -o pftry1 pftry1.c
pftry1.c:45:20: error: pfring.h: No such file or directory
pftry1.c:53: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ 
token
pftry1.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before 
‘pfringStats’
pftry1.c: In function ‘print_stats’:
pftry1.c:88: error: ‘pfring_stat’ undeclared (first use in this function)
pftry1.c:88: error: (Each undeclared identifier is reported only once
pftry1.c:88: error: for each function it appears in.)
pftry1.c:88: error: expected ‘;’ before ‘pfringStat’
pftry1.c:105: error: ‘pd’ undeclared (first use in this function)
pftry1.c:105: error: ‘pfringStat’ undeclared (first use in this function)
pftry1.c:117: warning: incompatible implicit declaration of built-in function 
‘fprintf’
pftry1.c:117: error: ‘stderr’ undeclared (first use in this function)
pftry1.c:146: warning: incompatible implicit declaration of built-in function 
‘fprintf’
pftry1.c: In function ‘add_rule’:
pftry1.c:171: error: ‘filtering_rule’ undeclared (first use in this function)
pftry1.c:171: error: expected ‘;’ before ‘rule’
pftry1.c:173: error: ‘rule’ undeclared (first use in this function)
pftry1.c:176: error: ‘forward_packet_and_stop_rule_evaluation’ undeclared 
(first use in this function)
pftry1.c:179: error: ‘pd’ undeclared (first use in this function)
pftry1.c:180: warning: incompatible implicit declaration of built-in function 
‘printf’
pftry1.c: In function ‘sigproc’:
pftry1.c:193: warning: incompatible implicit declaration of built-in function 
‘printf’
pftry1.c:196: warning: incompatible implicit declaration of built-in function 
‘fprintf’
pftry1.c:196: error: ‘stderr’ undeclared (first use in this function)
pftry1.c:202: error: ‘pd’ undeclared (first use in this function)
pftry1.c:204: warning: incompatible implicit declaration of built-in function 
‘exit’
pftry1.c: In function ‘in6toa’:
pftry1.c:292: warning: incompatible implicit declaration of built-in function 
‘snprintf’
pftry1.c: In function ‘proto2str’:
pftry1.c:313: warning: incompatible implicit declaration of built-in function 
‘snprintf’
pftry1.c: At top level:
pftry1.c:322: warning: ‘struct pfring_pkthdr’ declared inside parameter list
pftry1.c:322: warning: its scope is only this definition or declaration, which 
is probably not what you want
pftry1.c: In function ‘dummyProcesssPacket’:
pftry1.c:328: error: dereferencing pointer to incomplete type
pftry1.c:329: error: dereferencing pointer to incomplete type
pftry1.c:331: warning: incompatible implicit declaration of built-in function 
‘printf’
pftry1.c:333: error: dereferencing pointer to incomplete type
pftry1.c:342: error: dereferencing pointer to incomplete type
pftry1.c:343: error: dereferencing pointer to incomplete type
pftry1.c:344: error: dereferencing pointer to incomplete type
pftry1.c:346: error: dereferencing pointer to incomplete type
pftry1.c:347: error: dereferencing pointer to incomplete type
pftry1.c:347: error: dereferencing pointer to incomplete type
pftry1.c:348: error: dereferencing pointer to incomplete type
pftry1.c:349: error: dereferencing pointer to incomplete type
pftry1.c:350: error: dereferencing pointer to incomplete type
pftry1.c:350: error: dereferencing pointer to incomplete type
pftry1.c:351: error: dereferencing pointer to incomplete type
pftry1.c:354: error: dereferencing pointer to incomplete type
pftry1.c:355: error: dereferencing pointer to incomplete type
pftry1.c:358: error: dereferencing pointer to incomplete type
pftry1.c:374: error: dereferencing pointer to incomplete type
pftry1.c:375: error: dereferencing pointer to incomplete type
pftry1.c:376: error: dereferencing pointer to incomplete type
pftry1.c:380: error: dereferencing pointer to incomplete type
pftry1.c:380: error: dereferencing pointer to incomplete type
pftry1.c:381: error: dereferencing pointer to incomplete type
pftry1.c:381: error: dereferencing pointer to incomplete type
pftry1.c:381: error: dereferencing pointer to incomplete type
pftry1.c:382: error: dereferencing pointer to incomplete type
pftry1.c:383: error: dereferencing pointer to incomplete type
pftry1.c:384: error: dereferencing pointer to incomplete type
pftry1.c:385: error: dereferencing pointer to incomplete type
pftry1.c:395: error: dereferencing pointer to incomplete type
pftry1.c:395: error: dereferencing pointer to incomplete type
pftry1.c:395: error: dereferencing pointer to incomplete type
pftry1.c:396: error: dereferencing pointer to incomplete type
pftry1.c:397: error: dereferencing pointer to incomplete type
pftry1.c:398: error: dereferencing pointer to incomplete type
pftry1.c:399: error: dereferencing pointer to incomplete type
pftry1.c:403: error: dereferencing pointer to incomplete type
pftry1.c: In function ‘printHelp’:
pftry1.c:437: warning: incompatible implicit declaration of built-in function 
‘printf’
pftry1.c: In function ‘packet_consumer_thread’:
pftry1.c:470: warning: incompatible implicit declaration of built-in function 
‘printf’
pftry1.c:484: error: storage size of ‘hdr’ isn’t known
pftry1.c:490: error: ‘pd’ undeclared (first use in this function)
pftry1.c:506: warning: incompatible implicit declaration of built-in function 
‘printf’
pftry1.c: In function ‘main’:
pftry1.c:524: error: ‘packet_direction’ undeclared (first use in this function)
pftry1.c:524: error: expected ‘;’ before ‘direction’
pftry1.c:577: error: ‘rx_and_tx_direction’ undeclared (first use in this 
function)
pftry1.c:578: error: ‘rx_only_direction’ undeclared (first use in this function)
pftry1.c:579: error: ‘tx_only_direction’ undeclared (first use in this function)
pftry1.c:580: error: ‘direction’ undeclared (first use in this function)
pftry1.c:618: warning: incompatible implicit declaration of built-in function 
‘printf’
pftry1.c:627: error: ‘pd’ undeclared (first use in this function)
pftry1.c:652: error: ‘cluster_round_robin’ undeclared (first use in this 
function)
pftry1.c:728: error: ‘filtering_rule’ undeclared (first use in this function)
pftry1.c:728: error: expected ‘;’ before ‘rule’
pftry1.c:730: error: ‘rule’ undeclared (first use in this function)
pftry1.c:733: error: ‘forward_packet_and_stop_rule_evaluation’ undeclared 
(first use in this function)
                                          
_______________________________________________
Ntop-misc mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop-misc

Reply via email to