--- linuxcniapi.c.dist 2005-09-13 20:12:39.000000000 -0700 +++ linuxcniapi.c 2005-11-16 11:16:35.000000000 -0800 @@ -289,7 +289,16 @@ goto exit_gracefully; } /* move the data into the packet */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14) + { + struct timeval timestamp; + + do_gettimeofday(×tamp); + skb_set_timestamp(skb,×tamp); + } +#else do_gettimeofday(&skb->stamp); +#endif pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize); @@ -429,7 +438,16 @@ CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP); /* put the mac header on */ +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,14) + { + struct timeval timestamp; + + do_gettimeofday(×tamp); + skb_set_timestamp(skb,×tamp); + } +#else do_gettimeofday(&skb->stamp); +#endif skb->dev = pBinding->pDevice;