Date: Sun, 9 Nov 2003 09:30:08 -0800 (PST) From: Sergey Potapov <sp@ws.alkor.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/59062: nge0 swaps vlan tag bytes. Message-ID: <200311091730.hA9HU8w6088982@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR kern/59062; it has been noted by GNATS.
From: Sergey Potapov <sp@ws.alkor.ru>
To: freebsd-gnats-submit@FreeBSD.org, sp@alkor.ru
Cc:
Subject: Re: kern/59062: nge0 swaps vlan tag bytes.
Date: Sun, 9 Nov 2003 20:31:01 +0300
The following patch seems helps (on 4.9-Stable) if you config
vlan interface:
ifconfig vlan0 1.2.3.4/24 vlan 5 vlandev nge0 mtu 1500 -link0
by default mtu will be 1496 and -link0 is in effect.
if you set link0 flag you will see received packets and send
something wrong.
--- if_nge.c.orig Thu Feb 6 01:03:57 2003
+++ if_nge.c Sun Nov 9 18:41:27 2003
@@ -1467,7 +1467,7 @@
* to vlan_input() instead of ether_input().
*/
if (extsts & NGE_RXEXTSTS_VLANPKT) {
- VLAN_INPUT_TAG(eh, m, extsts & NGE_RXEXTSTS_VTCI);
+ VLAN_INPUT_TAG(eh, m, ntohs(extsts & NGE_RXEXTSTS_VTCI));
continue;
}
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311091730.hA9HU8w6088982>
