Subject: kern/18376: fun with vlan
To: None <gnats-bugs@gnats.netbsd.org>
From: None <lha@stacken.kth.se>
List: netbsd-bugs
Date: 09/22/2002 22:06:28
>Number:         18376
>Category:       kern
>Synopsis:       fun with vlan
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 22 13:10:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Love
>Release:        NetBSD 1.6
>Organization:
	
>Environment:
System: NetBSD datan.e.kth.se 1.6 NetBSD 1.6 (GENERIC)
Architecture: i386
Machine: i386
>Description:

	vlan does funny things when its not connected to a interface
	with ifconfig <if> vlanif.

>How-To-Repeat:

	# ifconfig vlan0 create
	# ifconfig vlan0 inet6 2001:6b0:1:1ef0::1 prefixlen 60
	ifconfig: SIOCAIFADDR: Invalid argument
	# ifconfig vlan0
	vlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST>
        inet6 :: prefixlen 60
	#  ifconfig vlan0 inet6 2001:6b0:1:1ef0::1 prefixlen 60
	ifconfig: SIOCAIFADDR: Invalid argument
	# Sep 22 22:01:00 datan /netbsd: ip6_prefix.c: addr ::/60 matched prefix already has another ia 0xc0932700(::) on its ifid list
	ifconfig vlan0
	vlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST>
	        inet6 :: prefixlen 60
	        inet6 :: prefixlen 60

	# ifconfig vlan0 vlan 411 vlanif ex0
	# ifconfig vlan0 inet6 2001:6b0:1:1ef0::1 prefixlen 60
	# ifconfig vlan0
	vlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
	        vlan: 411 parent: ex0
	        address: 00:c0:4f:c8:c3:1a
	        inet6 :: prefixlen 60
	        inet6 :: prefixlen 60
	        inet6 fe80::2c0:4fff:fec8:c31a%vlan0 prefixlen 64 scopeid 0x9
	        inet6 2001:6b0:1:1ef0::1 prefixlen 60

>Fix:

	I might look at it sometime. Not right now. It seem simple
	enough to fix. No ioctls except the VLAN one should be
	accepted before a parent is set.
>Release-Note:
>Audit-Trail:
>Unformatted: