From owner-freebsd-hackers Sun Jul 6 17:52:36 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id RAA14962 for hackers-outgoing; Sun, 6 Jul 1997 17:52:36 -0700 (PDT) Received: from implode.root.com (implode.root.com [198.145.90.17]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id RAA14955 for ; Sun, 6 Jul 1997 17:52:27 -0700 (PDT) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.5/8.8.5) with ESMTP id RAA18621; Sun, 6 Jul 1997 17:53:37 -0700 (PDT) Message-Id: <199707070053.RAA18621@implode.root.com> To: Archie Cobbs cc: freebsd-hackers@FreeBSD.ORG Subject: Re: VJ compression and MAX_HDR In-reply-to: Your message of "Sun, 06 Jul 1997 16:56:47 PDT." <199707062356.QAA13745@bubba.whistle.com> From: David Greenman Reply-To: dg@root.com Date: Sun, 06 Jul 1997 17:53:37 -0700 Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >> This means that when Van Jacobson compression is active, any packets >> sent to us with combined IP and TCP header length greater than MLEN >> will be dropped, always. >> >> This is an admittedly rare case, but my question is, why was this >> done? What code would break if MAX_HDR is changed back to 128? ... >After further review, it looks like the genesis of this change is >the fact that sl_compress_tcp() requires the full TCP/IP headers >to lie within the first mbuf, and sl_uncompress_tcp() requires the >TCP/IP header (in the TYPE_UNCOMPRESSED_TCP case) to also be in a >contiguous buffer... > >Plus the fact that m_pullup() won't work for values greater than MHLEN >doesn't help. I think the case of IP+TCP header > MLEN is more than rare...I think it never happens. Even with all options, the IP header doesn't exceed 64 bytes. -DG David Greenman Core-team/Principal Architect, The FreeBSD Project