From nobody@FreeBSD.org  Wed Mar 13 07:23:33 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id C4CFF37B405
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 13 Mar 2002 07:23:32 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g2DFNWo93520;
	Wed, 13 Mar 2002 07:23:32 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200203131523.g2DFNWo93520@freefall.freebsd.org>
Date: Wed, 13 Mar 2002 07:23:32 -0800 (PST)
From: Adrian Pavlykevych <pam@polynet.lviv.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: if_vlan module is compiled with ZERO vlan interfaces
X-Send-Pr-Version: www-1.0

>Number:         35861
>Category:       kern
>Synopsis:       if_vlan module is compiled with ZERO vlan interfaces
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    brooks
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 13 07:30:01 PST 2002
>Closed-Date:    Sun Sep 01 23:04:43 PDT 2002
>Last-Modified:  Sun Sep 01 23:04:43 PDT 2002
>Originator:     Adrian Pavlykevych
>Release:        RELENG_4
>Organization:
Lviv National Polytechnic University
>Environment:
FreeBSD betelgeuse.lp.lviv.ua 4.5-STABLE FreeBSD 4.5-STABLE #1: Wed Mar 13 16:51:23 EET 2002     root@betelgeuse.lp.lviv.ua:/home/obj/usr/src/sys/SOUCERER  i386
>Description:
if_vlan.ko module is compiled with NVLAN=0. This means no VLANs available to use on out of the box system.
>How-To-Repeat:
# kldload if_vlan
#ifconfig -a 

No vlan interfaces will be listed
>Fix:
*** sys/modules/if_vlan/Makefile.orig   Wed Mar 13 17:18:16 2002
--- sys/modules/if_vlan/Makefile        Wed Mar 13 17:12:38 2002
***************
*** 4,10 ****

  KMOD= if_vlan
  SRCS= if_vlan.c opt_inet.h
! CFLAGS+= -DNVLAN=0
  NOMAN=

  opt_inet.h:
--- 4,10 ----

  KMOD= if_vlan
  SRCS= if_vlan.c opt_inet.h
! CFLAGS+= -DNVLAN=16
  NOMAN=

  opt_inet.h:    
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->brooks 
Responsible-Changed-By: brooks 
Responsible-Changed-When: Wed Mar 13 11:51:41 PST 2002 
Responsible-Changed-Why:  
This was my work so I'll handle it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35861 

From: Brooks Davis <brooks@one-eyed-alien.net>
To: Adrian Pavlykevych <pam@polynet.lviv.ua>
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: kern/35861: if_vlan module is compiled with ZERO vlan interfaces
Date: Wed, 13 Mar 2002 11:56:26 -0800

 On Wed, Mar 13, 2002 at 07:23:32AM -0800, Adrian Pavlykevych wrote:
 > 
 > >Description:
 > if_vlan.ko module is compiled with NVLAN=0. This means no VLANs
 > available to use on out of the box system.
 
 This is the correct behavior.  VLAN interfaces are created at runtime
 via interface cloning.  See the create and destroy commands in the the
 ifconfig manpage for details. 
 
 The bug is that there's no documenation in the vlan manpage.  I'll fix
 this.
 
 -- Brooks
State-Changed-From-To: open->closed 
State-Changed-By: brooks 
State-Changed-When: Sun Sep 1 23:04:08 PDT 2002 
State-Changed-Why:  
Documentation commited to current and stable. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=35861 
>Unformatted:
