From: Christoph Lameter <cl@linux-foundation.org>
To: netdev@vger.kernel.org
Subject: IPV4: Enable IP_ID sequencing for all traffic (inquiring minds want to know why its set to zero)
Date: Wed, 16 Jul 2008 09:56:21 -0500 [thread overview]
Message-ID: <487E0C15.1070001@linux-foundation.org> (raw)
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)
next reply other threads:[~2008-07-16 14:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-16 14:56 Christoph Lameter [this message]
2008-07-16 19:03 ` IPV4: Enable IP_ID sequencing for all traffic (inquiring minds want to know why its set to zero) 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=487E0C15.1070001@linux-foundation.org \
--to=cl@linux-foundation.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).