Hi All,
In the latest pf_ring code from subversion, revision 4570 and pf_ring release 4.6.3 - To setup ntuple/flow director filtering through the pf_ring proc file –the define ENABLE_PROC_WRITE_RULE has to be set? The following are compile errors when setting the define ENABLE_PROC_WRITE_RULE in the makefile. make -C /lib/modules/2.6.31/build SUBDIRS=/root/ntop/PF_RING/kernel EXTRA_CFLAGS='-I/root/ntop/PF_RING/kernel -DSVN_REV="\"4570M\"" -DENABLE_PROC_WRITE_RULE' modules make[1]: Entering directory `/usr/src/linux-headers-2.6.35' CC [M] /root/ntop/PF_RING/kernel/pf_ring.o /root/ntop/PF_RING/kernel/pf_ring.c: In function âring_proc_dev_rule_writeâ: /root/ntop/PF_RING/kernel/pf_ring.c:753: error: âhw_filtering_rule_requestâ undeclared (first use in this function) /root/ntop/PF_RING/kernel/pf_ring.c:753: error: (Each undeclared identifier is reported only once /root/ntop/PF_RING/kernel/pf_ring.c:753: error: for each function it appears in.) /root/ntop/PF_RING/kernel/pf_ring.c:753: error: expected â;â before âruleâ /root/ntop/PF_RING/kernel/pf_ring.c:754: warning: ISO C90 forbids mixed declarations and code /root/ntop/PF_RING/kernel/pf_ring.c:780: error: âruleâ undeclared (first use in this function) /root/ntop/PF_RING/kernel/pf_ring.c:821: warning: passing argument 1 of âhandle_hw_filtering_ruleâ from incompatible pointer type /root/ntop/PF_RING/kernel/pf_ring.c:636: note: expected âstruct pf_ring_socket *â but argument is of type âstruct net_device *â /root/ntop/PF_RING/kernel/pf_ring.c:821: error: too few arguments to function âhandle_hw_filtering_ruleâ /root/ntop/PF_RING/kernel/pf_ring.c:755: warning: unused variable âdebugâ /root/ntop/PF_RING/kernel/pf_ring.c: In function âadd_device_to_ring_listâ: /root/ntop/PF_RING/kernel/pf_ring.c:5643: error: âentryâ undeclared (first use in this function) Is the intention to use ethtool for setting filtering rules going forward? Filtering will only work through ethtool with Linux kernel >= 2.6.34 Regards Jonathan
_______________________________________________ Ntop-dev mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop-dev
