netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* IPV4: Enable IP_ID sequencing for all traffic (inquiring minds want to know why its set to zero)
@ 2008-07-16 14:56 Christoph Lameter
  2008-07-16 19:03 ` David Stevens
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Christoph Lameter @ 2008-07-16 14:56 UTC (permalink / raw)
  To: netdev


There is some security reason why we set IP_ID == 0 right? Could someone point me at the discussions that lead to having IP_ID be zero? Have not been involved in network that much so forgive my ignorance.... and I can only find some hints about why this was done here and there using google.



Here is a patch that would reenable IP_ID sequencing


Subject: [IPV4] Enable IP_ID sequencing on all traffic

The current Linux sources disable IP_ID if the DF flag is set (not always. There
is an exception for VJ compression on certain windows platforms).

Just remove the check for the DF flag and always generate the ipid.

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>

Index: linux-2.6/include/net/ip.h
===================================================================
--- linux-2.6.orig/include/net/ip.h	2008-07-16 08:47:50.000000000 -0500
+++ linux-2.6/include/net/ip.h	2008-07-16 08:48:01.000000000 -0500
@@ -217,16 +217,7 @@
 
 static inline void ip_select_ident(struct iphdr *iph, struct dst_entry *dst, struct sock *sk)
 {
-	if (iph->frag_off & htons(IP_DF)) {
-		/* This is only to work around buggy Windows95/2000
-		 * VJ compression implementations.  If the ID field
-		 * does not change, they drop every other packet in
-		 * a TCP stream using header compression.
-		 */
-		iph->id = (sk && inet_sk(sk)->daddr) ?
-					htons(inet_sk(sk)->id++) : 0;
-	} else
-		__ip_select_ident(iph, dst, 0);
+	__ip_select_ident(iph, dst, 0);
 }
 
 static inline void ip_select_ident_more(struct iphdr *iph, struct dst_entry *dst, struct sock *sk, int more)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-07-17 16:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 14:56 IPV4: Enable IP_ID sequencing for all traffic (inquiring minds want to know why its set to zero) Christoph Lameter
2008-07-16 19:03 ` David Stevens
2008-07-16 19:06   ` David Stevens
2008-07-16 19:22     ` Christoph Lameter
2008-07-16 20:30       ` David Miller
2008-07-16 20:39         ` Rick Jones
2008-07-16 21:01           ` David Miller
2008-07-16 21:16             ` IPV4: Enable IP_ID sequencing for all traffic (inquiring mindswant " Templin, Fred L
2008-07-16 22:37               ` Christoph Lameter
2008-07-16 20:27 ` IPV4: Enable IP_ID sequencing for all traffic (inquiring minds want " David Miller
2008-07-17 16:12 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).