From owner-freebsd-current Thu Jul 13 6: 8:30 2000 Delivered-To: freebsd-current@freebsd.org Received: from ckmso1.proxy.att.com (ckmso1.att.com [12.20.58.69]) by hub.freebsd.org (Postfix) with ESMTP id 7E34337C3D3 for ; Thu, 13 Jul 2000 06:08:20 -0700 (PDT) (envelope-from myevmenkin@att.com) Received: from njb140r1.ems.att.com ([135.65.202.58]) by ckmso1.proxy.att.com (AT&T IPNS/MSO-2.2) with ESMTP id JAA19659 for ; Thu, 13 Jul 2000 09:08:17 -0400 (EDT) Received: from njb140bh2.ems.att.com by njb140r1.ems.att.com (8.8.8+Sun/ATTEMS-1.4.1 sol2) id JAA27495; Thu, 13 Jul 2000 09:07:07 -0400 (EDT) Received: by njb140bh2.ems.att.com with Internet Mail Service (5.5.2650.21) id <3NACWXHF>; Thu, 13 Jul 2000 09:08:16 -0400 Message-ID: From: "Yevmenkin, Maksim N, CSCIO" To: "'freebsd-current@freebsd.org'" Subject: possible NETGRAPH/NG_ETHER bug Date: Thu, 13 Jul 2000 09:08:15 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="koi8-r" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello All, i was working on integration of Ethernet TAP driver and NETGRAPH and found strange thing. the problem is that NG_ETHER nodes do not detach correctly when interface is gone. i was taking a very quick look at it, and, it seems to me that we are missing one reference to a node. i think it is ng_name_node/ng_unname pair. quick patch (works for NG_ETHER, but i did not have time to look at all NG_XXXX modules) available at http://home.earthlink.net/~evmax/ng_ether-diffs.tar.gz this problem could, possibly, affect other modules. after patch i was able to: - load Ethernet TAP driver - create several virtual Ethernet interfaces - load NG_ETHER module (and check nodes via ngctl) - unload Ethernet TAP driver (all virtual Ethernet interfaces are gone) - check that all NG_ETHER nodes are gone (via ngctl) - unload NG_ETHER module Thanks, emax To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message