Skip to contentSkip to conversation

ip_queue: Print warning when deprecated interface is being used

PATCH New Harald Welte 1 participant 1 message Apr 13, 2006

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

PATCH 1/1 ip_queue: Print warning when deprecated interface is being used

Hi Patrick!

I better submit this via you, since I don't want to clash with what you have in your queue for DaveM...

[NETFILTER] ip_queue: Print warning when deprecated interface is being used

Every time a process binds to ip_queue, this will print a KERN_WARNING message to inform the user that the process is using a deprecated interface, and that it should migrate to the new nfnetlink_queue interface.

Also, we extend the deadline for ip_queue removal till December 2006.

---
commit 73719a89c574bcda13d13cbec3aba672219988bb
tree 850bb876c175642cb86ee603cb05962f5b4bfae0
parent 3599bbbe2873942dcc68bc50dec7a91868373654
author Harald Welte <[email protected]> Thu, 13 Apr 2006 10:05:56 +0200 committer Harald Welte <[email protected]> Thu, 13 Apr 2006 10:05:56 +0200

 Documentation/feature-removal-schedule.txt |    2 +-
 net/ipv4/netfilter/ip_queue.c              |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
Documentation/feature-removal-schedule.txt +1 -1
index 293fed1..2ed657c 100644
@@ -97,7 +97,7 @@ Who:	Dominik Brodowski <[email protected]>
 ---------------------------
 
 What:	ip_queue and ip6_queue (old ipv4-only and ipv6-only netfilter queue)
-When:	December 2005
+When:	December 2006
 Why:	This interface has been obsoleted by the new layer3-independent
 	"nfnetlink_queue".  The Kernel interface is compatible, so the old
 	ip[6]tables "QUEUE" targets still work and will transparently handle
net/ipv4/netfilter/ip_queue.c +3 -0
index b93f049..d58d5d6 100644
@@ -520,6 +520,9 @@ ipq_rcv_skb(struct sk_buff *skb)
 	} else {
 		net_enable_timestamp();
 		peer_pid = pid;
+		printk(KERN_WARNING "process with PID %u uses deprecated "
+		       "ip_queue interface. Please migrate to "
+		       "nfnetlink_queue\n", pid);
 	}
 		
 	write_unlock_bh(&queue_lock);
Signature · 5 lines
- Harald Welte <[email protected]>                 http://netfilter.org/
============================================================================
  "Fragmentation is like classful addressing -- an interesting early
   architectural error that shows how much experimentation was going
   on while IP was being designed."                    -- Paul Vixie