Date: Sun, 9 Nov 2003 09:20: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: <200311091720.hA9HK8LE088373@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:13:52 +0300
Addition.
After applying simple path:
=================================================================================
--- 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;
}
=================================================================================
I've got the following results:
1. I can see right vlan tag and vlan interface receives packets as
desired.
2. vlan inteface if configured as -link0 (software tag insertion in
4.9-STABLE) sends vlan tag as desired, and if configured with link0
sends something other.
3. In any case packets with maximal MTU are'n send in right way,
receiving is not tested.
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311091720.hA9HK8LE088373>
