Skip to contentSkip to conversation

: Enable rx timestamps in ip_queue/ip6_queue

PATCH In review Patrick McHardy 1 participant 1 message Nov 15, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 6/9 : Enable rx timestamps in ip_queue/ip6_queue

Enable rx timestamps in ip_queue/ip6_queue.

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/11/13 13:29:00+01:00 [email protected]
# [NETFILTER]: Enable rx timestamps in ip_queue/ip6_queue
#
# Signed-off-by: Patrick McHardy <[email protected]>
#

# net/ipv6/netfilter/ip6_queue.c
#   2004/11/13 13:28:54+01:00 [email protected] +4 -2
#   [NETFILTER]: Enable rx timestamps in ip_queue/ip6_queue
#   
#   Signed-off-by: Patrick McHardy <[email protected]>
# 
# net/ipv4/netfilter/ip_queue.c
#   2004/11/13 13:28:54+01:00 [email protected] +4 -2
#   [NETFILTER]: Enable rx timestamps in ip_queue/ip6_queue
#   
#   Signed-off-by: Patrick McHardy <[email protected]>
# 
diff -Nru a/net/ipv4/netfilter/ip_queue.c b/net/ipv4/netfilter/ip_queue.c
--- a/net/ipv4/netfilter/ip_queue.c	2004-11-15 22:07:17 +01:00
+++ b/net/ipv4/netfilter/ip_queue.c	2004-11-15 22:07:17 +01:00
@@ -162,6 +162,7 @@
 __ipq_reset(void)
 {
 	peer_pid = 0;
+	net_disable_timestamp();
 	__ipq_set_mode(IPQ_COPY_NONE, 0);
 	__ipq_flush(NF_DROP);
 }
@@ -517,9 +518,10 @@
 			write_unlock_bh(&queue_lock);
 			RCV_SKB_FAIL(-EBUSY);
 		}
-	}
-	else
+	} else {
+		net_enable_timestamp();
 		peer_pid = pid;
+	}

write_unlock_bh(&queue_lock);

net/ipv6/netfilter/ip6_queue.c +4 -2
diff -Nru a/net/ipv6/netfilter/ip6_queue.c b/net/ipv6/netfilter/ip6_queue.c
@@ -167,6 +167,7 @@
 __ipq_reset(void)
 {
 	peer_pid = 0;
+	net_disable_timestamp();
 	__ipq_set_mode(IPQ_COPY_NONE, 0);
 	__ipq_flush(NF_DROP);
 }
@@ -520,9 +521,10 @@
 			write_unlock_bh(&queue_lock);
 			RCV_SKB_FAIL(-EBUSY);
 		}
-	}
-	else
+	} else {
+		net_enable_timestamp();
 		peer_pid = pid;
+	}
 		
 	write_unlock_bh(&queue_lock);