NetBSD Problem Report #29273
From yamt@mwd.biglobe.ne.jp Mon Feb 7 21:23:12 2005
Return-Path: <yamt@mwd.biglobe.ne.jp>
Received: from yamt.dyndns.org (FLA1Aaf058.kng.mesh.ad.jp [61.193.99.58])
by narn.netbsd.org (Postfix) with ESMTP id 574BF63B400
for <gnats-bugs@gnats.NetBSD.org>; Mon, 7 Feb 2005 21:23:12 +0000 (UTC)
Message-Id: <1107811377.776210.1300.nullmailer@yamt.dyndns.org>
Date: Tue, 08 Feb 2005 06:22:57 +0900
From: yamt@mwd.biglobe.ne.jp
Reply-To: yamt@mwd.biglobe.ne.jp
To: gnats-bugs@netbsd.org
Subject: SIOCADDMULTI leaves an interface intermediate state on errors.
X-Send-Pr-Version: 3.95
>Number: 29273
>Category: kern
>Synopsis: SIOCADDMULTI leaves an interface intermediate state on errors.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Feb 07 21:24:00 +0000 2005
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 2.99.14
>Organization:
>Environment:
System: NetBSD kaeru 2.99.14 NetBSD 2.99.14 (build.kaeru) #181: Mon Feb 7 17:43:33 JST 2005 takashi@kaeru:/usr/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
SIOCADDMULTI is often implemented as the following:
error = ether_ioctl();
if (error == ENETRESET) {
error = xxx_init();
}
return error;
because a caller doesn't have a way to know which of ether_ioctl()
or xxx_init() failed, it can't know if SIOCDELMULTI is needed
to clean up in-core multicast list.
>How-To-Repeat:
>Fix:
cleanup in-core multicast list in the case of xxx_init failed.
and/or document a way to recover from errors.
>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.