summaryrefslogtreecommitdiff
blob: b560a444a8eee277f7f379f27ced3ad0e1ebd27f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
--- linuxcniapi.c.orig	2005-11-25 10:24:28.000000000 -0600
+++ linuxcniapi.c	2005-11-25 10:21:52.000000000 -0600
@@ -274,6 +274,7 @@
     PBINDING pBinding;
     LPFRAGMENTBUFFER lpMacFragment;
     struct sk_buff *skb = NULL;
+    struct timeval stamp;
     unsigned char *pIP = NULL, *pMac = NULL;
 
     /* we need to build the actual sk_buff from the packet structure */
@@ -289,7 +290,8 @@
         goto exit_gracefully;
     }
     /* move the data into the packet */
-    do_gettimeofday(&skb->stamp);
+    do_gettimeofday(&stamp);
+    skb_set_timestamp(skb, &stamp);
 
     pIP = skb_put(skb, lpPacketDescriptor->uiPacketSize);
 
@@ -386,6 +388,7 @@
     PBINDING pBinding,pVABinding;
     LPFRAGMENTBUFFER lpMacFragment;
     struct sk_buff *skb;
+    struct timeval stamp;
     unsigned char *pIP = NULL, *pMac = NULL;
     int tmp_rc = 0;
 
@@ -429,7 +432,8 @@
     CniGetPacketData(Packet, 0, lpPacketDescriptor->uiPacketSize, pIP);
 
     /* put the mac header on */
-    do_gettimeofday(&skb->stamp);
+    do_gettimeofday(&stamp);
+    skb_set_timestamp(skb, &stamp);
 
     skb->dev = pBinding->pDevice;