Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Nov 2010 18:14:40 +0000
From:      Paul B Mahol <onemda@gmail.com>
To:        Weongyo Jeong <weongyo@freebsd.org>, current@freebsd.org
Subject:   Re: [CFR] a small change of ifconfig(8)
Message-ID:  <AANLkTikiWujd=s_9WK4TLLwZ_AD3R4kFVGc_nVxJm=NY@mail.gmail.com>
In-Reply-To: <20101125234527.GO92881@weongyo>

index | next in thread | previous in thread | raw e-mail

On 11/25/10, Weongyo Jeong <weongyo.jeong@gmail.com> wrote:
> Hello all,
>
> I'm sending this email to check whether my approach is reasonable that I
> added 2 line into ifconfig(8) to skip IFT_USB interfaces as follows:
>
> +		if (sdl != NULL && sdl->sdl_type == IFT_USB)
> +			continue;
>
> And as additionally I added two changes of USB pf to call if_up(ifp) /
> if_down(ifp) explicitly to UP usbus interfaces though normally it always
> should be called through user ioctl calls.
>
> The reason why I make this patch is that I encountered a side-effect
> output from ifconfig(8) after USB packet filter is committed.  Yes usbus
> interfaces are printed.
>
> Please give me some hints whether the patch is reasonable.  If it's
> reasonable, is there other tools which I should make patches?

Currently ifconfig will with special rc.conf configuration "hang" after boot
making multiuser mode impossible to happen.

Perhaps ifconfig tries to do something fancy with usbus interfaces.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikiWujd=s_9WK4TLLwZ_AD3R4kFVGc_nVxJm=NY>