I'm building iptraf-ng on CentOS 5.9 and running into the following errors:
src/packet.c: In function ‘packet_process’:
src/packet.c:322: error: ‘ETH_P_QINQ1’ undeclared (first use in this function)
src/packet.c:322: error: (Each undeclared identifier is reported only once
src/packet.c:322: error: for each function it appears in.)
src/packet.c:323: error: ‘ETH_P_QINQ2’ undeclared (first use in this function)
src/packet.c:324: error: ‘ETH_P_QINQ3’ undeclared (first use in this function)
src/packet.c:325: error: ‘ETH_P_8021AD’ undeclared (first use in this function)
I am assuming that this is from the build not seeing the kernel or network interface constant definitions properly. This is on a virtual machine and the normal version of straight iptraf
will not work with vnet0.
What would be the proper steps to include the support libraries here for compilation?
NOTE: I have also attempted to build the source rpm as well, however it's a losing battle it seems as per here.