NetBSD Problem Report #48996
From t.hash425@gmail.com Tue Jul 15 15:24:27 2014
Return-Path: <t.hash425@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 4DE9DA654E
for <gnats-bugs@gnats.netbsd.org>; Tue, 15 Jul 2014 15:24:27 +0000 (UTC)
Message-Id: <53C547A6.8010607@gmail.com>
Date: Wed, 16 Jul 2014 00:24:22 +0900
From: Takahiro HAYASHI <t.hash425@gmail.com>
To: gnats-bugs@gnats.NetBSD.org
Subject: ifconfig shows error message when changing MTU of bridge
>Number: 48996
>Category: kern
>Synopsis: ifconfig shows error message when changing MTU of bridge
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jul 15 15:25:00 +0000 2014
>Closed-Date: Tue Jul 22 01:27:35 +0000 2014
>Last-Modified: Tue Jul 22 01:27:35 +0000 2014
>Originator: Takahiro HAYASHI
>Release: NetBSD 6.99.47
>Organization:
>Environment:
System: NetBSD 6.99.47 NetBSD 6.99.47 (XHCIDEBUG) #2: Mon Jul 14 02:12:59 JST 2014 root@halt:/build/head/obj.amd64/sys/arch/amd64/compile/XHCIDEBUG amd64
Architecture: x86_64
Machine: amd64
>Description:
When I change the MTU of bridge, ifconfig shows following error
message:
> ifconfig bridge0 mtu 1504
> ifconfig: SIOCSIFMTU: Network dropped connection on reset
The configuration is done normally and ifconfig exits with 0.
This looks harmless but may confuse users or scripts.
I guess something lacks in the case of ioctl SIOCSIFMTU in
net/if_bridge.c, e.g. setting error = 0 when error == ENETRESET.
>How-To-Repeat:
See Description.
>Fix:
--
t-hash
>Release-Note:
>Audit-Trail:
From: Ryota Ozaki <ozaki-r@NetBSD.org>
To: gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/48996: ifconfig shows error message when changing MTU of bridge
Date: Mon, 21 Jul 2014 17:43:38 +0900
Hi HAYASHI-san,
I fixed the problem by v1.88 of if_bridge.c:
http://cvsweb.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/net/if_bridge.c
Could you confirm?
Thanks,
ozaki-r
On Wed, Jul 16, 2014 at 12:25 AM, Takahiro HAYASHI <t.hash425@gmail.com> wrote:
>>Number: 48996
>>Category: kern
>>Synopsis: ifconfig shows error message when changing MTU of bridge
>>Confidential: no
>>Severity: non-critical
>>Priority: low
>>Responsible: kern-bug-people
>>State: open
>>Class: sw-bug
>>Submitter-Id: net
>>Arrival-Date: Tue Jul 15 15:25:00 +0000 2014
>>Originator: Takahiro HAYASHI
>>Release: NetBSD 6.99.47
>>Organization:
>>Environment:
> System: NetBSD 6.99.47 NetBSD 6.99.47 (XHCIDEBUG) #2: Mon Jul 14 02:12:59 JST 2014 root@halt:/build/head/obj.amd64/sys/arch/amd64/compile/XHCIDEBUG amd64
> Architecture: x86_64
> Machine: amd64
>>Description:
> When I change the MTU of bridge, ifconfig shows following error
> message:
>
> > ifconfig bridge0 mtu 1504
> > ifconfig: SIOCSIFMTU: Network dropped connection on reset
>
> The configuration is done normally and ifconfig exits with 0.
> This looks harmless but may confuse users or scripts.
>
> I guess something lacks in the case of ioctl SIOCSIFMTU in
> net/if_bridge.c, e.g. setting error = 0 when error == ENETRESET.
>
>>How-To-Repeat:
> See Description.
>>Fix:
>
>
> --
> t-hash
>
From: Takahiro HAYASHI <t.hash425@gmail.com>
To: Ryota Ozaki <ozaki-r@NetBSD.org>, gnats-bugs@netbsd.org
Cc: kern-bug-people@netbsd.org, gnats-admin@netbsd.org,
netbsd-bugs@netbsd.org
Subject: Re: kern/48996: ifconfig shows error message when changing MTU of
bridge
Date: Mon, 21 Jul 2014 18:52:47 +0900
(07/21/14 17:43), Ryota Ozaki wrote:
> Hi HAYASHI-san,
>
> I fixed the problem by v1.88 of if_bridge.c:
> http://cvsweb.netbsd.org/cgi-bin/cvsweb.cgi/src/sys/net/if_bridge.c
>
> Could you confirm?
It now works fine, thank you!
--
t-hash
State-Changed-From-To: open->closed
State-Changed-By: ozaki-r@NetBSD.org
State-Changed-When: Tue, 22 Jul 2014 01:27:35 +0000
State-Changed-Why:
I and the reporter confirmed the fix.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.