I am having a problem with compiling the pf_ring code with a centos
kernel source rpm version of kernel which is patched up with the
centos/redhat kernel patches. I did a search prior to posting and found
two other cases of people having the same error. 

 

The specific error I am getting is:

 

In file included from net/ring/ring_packet.c:46:

include/linux/config.h:6:2: warning: #warning Including config.h is
deprecated.

net/ring/ring_packet.c:232: error: redefinition of 'ip_hdr'

include/linux/ip.h:109: error: previous definition of 'ip_hdr' was here

net/ring/ring_packet.c:238: error: redefinition of
'skb_set_network_header'

include/linux/skbuff.h:1021: error: previous definition of
'skb_set_network_header' was here

net/ring/ring_packet.c:243: error: redefinition of
'skb_reset_network_header'

include/linux/skbuff.h:1016: error: previous definition of
'skb_reset_network_header' was here

net/ring/ring_packet.c:248: error: redefinition of
'skb_reset_transport_header'

include/linux/skbuff.h:995: error: previous definition of
'skb_reset_transport_header' was here

make[2]: *** [net/ring/ring_packet.o] Error 1

make[1]: *** [net/ring] Error 2

make: *** [net] Error 2

 

 

The first post I found from Feb. of 2009 had no solution and no
responses. The link to another post mentioned a conversation with RedHat
where it was mentioned to edit ring_packet.c in two places.

 

Is there a suggested solution to this issue? I am working on using
pf_ring with Snort, and as a proof of concept for ntop to management in
an effort to migrate to more ntop.

 

I am running CentOS x86_64 5.3.

 

Nick

 

 

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

Reply via email to