--- linuxcniapi.c 2005-11-12 11:53:06.000000000 -0600 +++ 2.6.14-vpnclient-linux-4.7.00.0640-linuxcniapi.c 2005-11-12 11:49:20.000000000 -0600 @@ -276,6 +276,8 @@ struct sk_buff *skb = NULL; unsigned char *pIP = NULL, *pMac = NULL; + struct timeval timecount; + /* we need to build the actual sk_buff from the packet structure */ pBinding = (PBINDING) Binding; lpPacketDescriptor = (LPPACKETDESCRIPTOR) Packet; @@ -289,7 +291,10 @@ goto exit_gracefully; } /* move the data into the packet */ - do_gettimeofday(&skb->stamp); + do_gettimeofday(&timecount); + + skb->tstamp.off_sec = (u32) timecount.tv_sec; + skb->tstamp.off_usec = (u32) timecount.tv_usec; pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize); @@ -389,6 +394,8 @@ unsigned char *pIP = NULL, *pMac = NULL; int tmp_rc = 0; + struct timeval timecount; + int (*tmp_InjectSend) (struct sk_buff * skb, struct net_device * dev); tmp_InjectSend = NULL; @@ -429,7 +436,10 @@ CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP); /* put the mac header on */ - do_gettimeofday(&skb->stamp); + do_gettimeofday(&timecount); + + skb->tstamp.off_sec = (u32) timecount.tv_sec; + skb->tstamp.off_usec = (u32) timecount.tv_usec; skb->dev = pBinding->pDevice;