netdev
[Top] [All Lists]

Re: VLAN patches

To: Andersson Björn <Bjorn.Andersson@xxxxxxxxxxxxxxx>
Subject: Re: VLAN patches
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Sat, 05 Oct 2002 12:27:15 -0700
Cc: netdev@xxxxxxxxxxx, "David S. Miller" <davem@xxxxxxxxxx>
Organization: Candela Technologies
References: <3D980A10.8B06F2C2@xxxxxxxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910
This patch looks good too, though the (vlan_id < 0) test
is redundant since vlan_id is an unsigned number.  For
clarity of code, I wouldn't mind if it stayed in though.

Andersson Björn wrote:
Hi,
I hope you are the right receiver of 8021q-patches.
We are running SuSe 8.0, i.e kernel 2.4.18.

- If we try to remove a vlan with VID 0, ifconfig stops working
completly.
We fixed it with vlan.c.patch.




------------------------------------------------------------------------

--- linux-2.4.18.SuSE/net/8021q/vlan.c.orig     Wed Mar 27 13:57:17 2002
+++ linux-2.4.18.SuSE/net/8021q/vlan.c  Wed Sep 18 13:19:13 2002
@@ -207,7 +207,7 @@
 #endif
/* sanity check */
-       if ((vlan_id >= VLAN_VID_MASK) || (vlan_id <= 0))
+       if ((vlan_id >= VLAN_VID_MASK) || (vlan_id < 0))
                return -EINVAL;
spin_lock_bh(&vlan_group_lock);


--
Ben Greear <greearb@xxxxxxxxxxxxxxx>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear




<Prev in Thread] Current Thread [Next in Thread>