netdev
[Top] [All Lists]

Re: VLAN patches

To: "David S. Miller" <davem@xxxxxxxxxx>
Subject: Re: VLAN patches
From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
Date: Sat, 05 Oct 2002 21:31:45 -0700
Cc: Bjorn.Andersson@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx
Organization: Candela Technologies
References: <3D980A10.8B06F2C2@xxxxxxxxxxxxxxx> <3D9F3D13.3080904@xxxxxxxxxxxxxxx> <20021005.211753.25232925.davem@xxxxxxxxxx>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2a) Gecko/20020910
David S. Miller wrote:
   From: Ben Greear <greearb@xxxxxxxxxxxxxxx>
   Date: Sat, 05 Oct 2002 12:27:15 -0700

   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.
VLAN ID zero is illegal. You should not use ifconfig
with a VID of zero.


As someone mentioned, vlan of 0 may be used to do a priority-only
type of VLAN.  I don't know how much this makes sense though...

If we do decide to restrict it, the right place to restrict is in
the creation clause, not the deletion code, as exists now.

--
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>