Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2006 01:09:25 +0300 (MSK)
From:      Yar Tikhiy <yar@comp.chem.msu.su>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/105925: Regression in ifconfig(8) + vlan(4)
Message-ID:  <200611272209.kARM9P3e012200@bsd.chem.msu.ru>
Resent-Message-ID: <200611272250.kARMoEd5089867@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105925
>Category:       kern
>Synopsis:       Regression in ifconfig(8) + vlan(4)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 27 22:50:13 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Yar Tikhiy
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
none
>Environment:
System: FreeBSD dg.local 7.0-CURRENT FreeBSD 7.0-CURRENT #17: Sun Nov 26
        20:19:14 MSK 2006 yar@dg.local:/usr/obj/usr/src/sys/GENERIC i386

>Description:

	After the introduction of SIOCSIFCREATE2 and respective changes
	to ifconfig(8), some valid ifconfig command lines started to fail.

>How-To-Repeat:

Checked out ifconfig dated just before the change: 2006.07.09.00.00.00.
Compiled it all right.
Using it:

	dg# ./ifconfig vlan77 create vlan 77 vlandev xl0 up
	dg# ./ifconfig vlan77
	vlan77: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
		ether 00:50:04:9d:be:f1
		media: Ethernet autoselect (100baseTX <full-duplex>)
		status: active
		vlan: 77 parent interface: xl0
	dg# ./ifconfig vlan77 destroy

	dg# ./ifconfig vlan77 create vlan 77 vlandev xl0 mtu 1006 up
	dg# ./ifconfig vlan77
	vlan77: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1006
		ether 00:50:04:9d:be:f1
		media: Ethernet autoselect (100baseTX <full-duplex>)
		status: active
		vlan: 77 parent interface: xl0
	dg# ./ifconfig vlan77 destroy

All OK...

Now using the stock ifconfig:

	dg# ifconfig vlan77 create vlan 77 vlandev xl0 up
	ifconfig: ioctl (SIOCGIFFLAGS): no such interface

	dg# ifconfig vlan77 create vlan 77 vlandev xl0 mtu 1006 up
	ifconfig: ioctl (set mtu): Device not configured
	ifconfig: ioctl (SIOCGIFFLAGS): no such interface

	dg# ifconfig vlan77
	ifconfig: interface vlan77 does not exist

Total failure, the interface wasn't created at all.

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611272209.kARM9P3e012200>