kern/59062: nge0 swaps vlan tag bytes.

Sergey Potapov sp at ws.alkor.ru
Sun Nov 9 09:20:10 PST 2003


The following reply was made to PR kern/59062; it has been noted by GNATS.

From: Sergey Potapov <sp at ws.alkor.ru>
To: freebsd-gnats-submit at FreeBSD.org, sp at 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.
 
 


More information about the freebsd-bugs mailing list