Daniel I have committed the fix many thanks Luca
On May 18, 2011, at 4:39 AM, Daniel, Christopher wrote: > Hi Luca, > > I'm using kernel 2.6.18-238.9.1.el5 > > I get a compile error when I try to build the kernel. Please see the fix and > let me know if this is OK. > > make[1]: Entering directory `/usr/src/kernels/2.6.18-238.9.1.el5-x86_64' > CC [M] /home/cdaniel/Installs/pf_ring/PF_RING/kernel/pf_ring.o > /home/cdaniel/Installs/pf_ring/PF_RING/kernel/pf_ring.c: In function > âset_skb_timeâ: > /home/cdaniel/Installs/pf_ring/PF_RING/kernel/pf_ring.c:2695: error: invalid > type argument of â->â > make[2]: *** [/home/cdaniel/Installs/pf_ring/PF_RING/kernel/pf_ring.o] Error 1 > make[1]: *** [_module_/home/cdaniel/Installs/pf_ring/PF_RING/kernel] Error 2 > make[1]: Leaving directory `/usr/src/kernels/2.6.18-238.9.1.el5-x86_64' > > SOLUTION: > ########### > > I looked at the code in pf_ring.c and it looks like for kernels < 2.6.22 > > #elif(LINUX_VERSION_CODE < KERNEL_VERSION(2,6,22)) > if(skb->tstamp.off_sec == 0) > __net_timestamp(skb); /* If timestamp is missing add it */ > hdr->ts.tv_sec = skb->tstamp.off_sec, hdr->ts.tv_usec = skb->tstamp.off_usec; > hdr->extended_hdr->timestamp_ns = 0; /* No nsec for old kernels */ should be > changed to > hdr->extended_hdr.timestamp_ns = 0; i.e . instead of -> as extended_hdr is > not a pointer. > > > > See > struct pfring_pkthdr { > /* pcap header */ > struct timeval ts; /* time stamp */ > u_int32_t caplen; /* length of portion present */ > u_int32_t len; /* length this packet (off wire) */ > struct pfring_extended_pkthdr extended_hdr; /* PF_RING extended header */ > }; > > > > > > _______________________________________________ > Ntop-misc mailing list > Ntop-misc@listgateway.unipi.it > http://listgateway.unipi.it/mailman/listinfo/ntop-misc --- If you can not measure it, you can not improve it - Lord Kelvin _______________________________________________ Ntop-misc mailing list Ntop-misc@listgateway.unipi.it http://listgateway.unipi.it/mailman/listinfo/ntop-misc