Subject: Re: Problem with sip(4) truncating full-sized frames when used with vlan(4)
To: Nino Dehne <ndehne@gmail.com>
From: Pavel Cahyna <pavel.cahyna@st.mff.cuni.cz>
List: current-users
Date: 03/05/2006 12:05:02
On Sun, Mar 05, 2006 at 07:37:02AM +0100, Nino Dehne wrote:
> Hi,
> 
> could somebody please look into the problem I described in kern/32900?
> 
> It bit me again recently. I now have to set the MTU on _every_ box on the
> segment to 1496 or else I get weird behaviour like full-sized HTTP POSTs
> not working while normal browsing works.
> 
> I can almost definitely say that sip(4) used to work with vlan(4) and I
> never had problems under 3.0.

There was one change to this driver which could be related. Try reverting
it with this patch:


Index: src/sys/dev/pci/if_sip.c
diff -u src/sys/dev/pci/if_sip.c:1.104 src/sys/dev/pci/if_sip.c:1.103
--- src/sys/dev/pci/if_sip.c:1.104	Tue Feb  7 07:20:04 2006
+++ src/sys/dev/pci/if_sip.c	Sun Dec 11 13:22:49 2005
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_sip.c,v 1.104 2006/02/07 06:20:04 thorpej Exp $	*/
+/*	$NetBSD: if_sip.c,v 1.103 2005/12/11 12:22:49 christos Exp $	*/
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.104 2006/02/07 06:20:04 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_sip.c,v 1.103 2005/12/11 12:22:49 christos Exp $");
 
 #include "bpfilter.h"
 #include "rnd.h"
@@ -1899,8 +1899,8 @@
 		m->m_len -= ETHER_CRC_LEN;
 
 		*sc->sc_rxtailp = NULL;
-		len = m->m_len + sc->sc_rxlen;
 		m = sc->sc_rxhead;
+		len = m->m_len + sc->sc_rxlen;
 
 		SIP_RXCHAIN_RESET(sc);