kern/59062: nge0 swaps vlan tag bytes.

Sergey Potapov sp at ws.alkor.ru
Sun Nov 9 09:30:17 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: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;
                  }
 
 


More information about the freebsd-bugs mailing list