  	sock_recv_timestamp(msg, sk, skb);
  
  	if (msg->msg_name)
-@@ -1521,10 +1592,67 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
+@@ -1521,10 +1594,67 @@ static int packet_ioctl(struct socket *sock, unsigned int cmd,
  			return put_user(amount, (int __user *)arg);
  		}
  		case SIOCGSTAMP:

+ * use more memory.
+ */
+		macoff = netoff = TPACKET_ALIGN(TPACKET_HDRLEN + 16 + sizeof(vcounter_t));
+#else 
 		macoff = netoff = TPACKET_ALIGN(TPACKET_HDRLEN) + 16;
+#endif
 	} else {

From f8d0100870a52fad1f0c953606bbaa73857c9f10 Mon Sep 17 00:00:00 2001
From: Julien Ridoux <julien@synclab.org>
Date: Fri, 13 Nov 2009 16:13:17 +1100
Subject: [PATCH RADclock 6/9] RADclock export of packet timestamps

IOCTL or PACKET_MMAP interfaces for passing timestamps to user space
