  		macoff = netoff - maclen;
  	}
  
-@@ -634,6 +658,23 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
+@@ -634,6 +659,23 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
  
  	skb_copy_bits(skb, 0, (u8*)h + macoff, snaplen);
  
 +#ifdef CONFIG_RADCLOCK
-+	/* Provide a timeval stamp build based on the RADclock or a timestamp for 
++	/* Provide a timeval stamp build based on the RADclock or a timestamp for
 +	 * fair comparison. Replace existing timestamp in the skbuff if in the right
 +	 * mode. Default is to return normal stamp.
 +	 */

 	h->tp_len = skb->len;
 	h->tp_snaplen = snaplen;
 	h->tp_mac = macoff;
@@ -656,6 +697,28 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
 	else
 		sll->sll_ifindex = dev->ifindex;
 

 #ifdef CONFIG_INET
 #include <net/inet_common.h>
 #endif
@@ -561,6 +565,11 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
 	unsigned short macoff, netoff;
 	struct sk_buff *copy_skb = NULL;
 	struct timeval tv;
+#ifdef CONFIG_RADCLOCK
+	unsigned short vcountoff;
+	ktime_t rad_ktime;
+	void *raw;
+#endif
 
 	if (skb->pkt_type == PACKET_LOOPBACK)
 		goto drop;
@@ -592,10 +601,26 @@ static int tpacket_rcv(struct sk_buff *skb, struct net_device *dev, struct packe
 		snaplen = res;
 
 	if (sk->sk_type == SOCK_DGRAM) {
