From owner-freebsd-stable@FreeBSD.ORG Fri Nov 12 12:37:06 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2868C106564A for ; Fri, 12 Nov 2010 12:37:06 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from loki.netlab.sk (loki.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id B251D8FC08 for ; Fri, 12 Nov 2010 12:37:05 +0000 (UTC) Received: from door.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: PLAIN milan, TLS: TLSv1/SSLv3,256bits,AES256-SHA) by loki.netlab.sk with esmtp; Fri, 12 Nov 2010 13:35:38 +0100 id 00033C18.4CDD349A.0000DC4C From: Milan Obuch To: freebsd-stable@freebsd.org Date: Fri, 12 Nov 2010 13:27:03 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <4CDD2B4C.5090106@norma.perm.ru> <201011121307.23133.zec@icir.org> In-Reply-To: <201011121307.23133.zec@icir.org> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011121327.04287.freebsd-stable@dino.sk> Subject: Re: netgraph and interface nodes X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 12:37:06 -0000 On Friday 12 November 2010 13:07:22 Marko Zec wrote: > On Friday 12 November 2010 12:55:56 Eugene M. Zheganin wrote: > > Hi. > > > > I'm using 8.1-STABLE on one of my production servers. I wrote about krb5 > > problem some time ago. > > Second trouble is netgraph-related. > > > > I'm using dot1q on an em(4) card. > > It's loaded as a module atm (however earlier it was in kernel). > > > > I have ng_ether/ng_iface in kernel, if_vlan loaded as a module, but I > > cannot see vlan interface nodes in ngctl. > > > > Is this known problem related to a driver loaded a s a module ? > > Or maby it can be helped some other way ? > > That kind of setup works fine here on stable/8: > > tpx32# uname -a > FreeBSD tpx32.icir.org 8.1-STABLE FreeBSD 8.1-STABLE #3: Tue Nov 9 > 15:15:54 CET 2010 > tpx32# ngctl l > There are 3 total nodes: > Name: em0 Type: ether ID: 00000001 Num hooks: 0 > Name: wlan0 Type: ether ID: 00000008 Num hooks: 0 > Name: ngctl7968 Type: socket ID: 00000009 Num hooks: 0 > tpx32# ifconfig vlan0 create > tpx32# ifconfig vlan0 vlan 101 vlandev em0 > tpx32# ngctl l > There are 4 total nodes: > Name: em0 Type: ether ID: 00000001 Num hooks: 0 > Name: vlan0 Type: ether ID: 0000000a Num hooks: 0 > Name: wlan0 Type: ether ID: 00000008 Num hooks: 0 > Name: ngctl8033 Type: socket ID: 0000000b Num hooks: 0 > tpx32# > > Marko > Slightly related... how about em0.100 type nodes? # ngctl list There are 3 total nodes: Name: em0 Type: ether ID: 00000001 Num hooks: 0 Name: em1 Type: ether ID: 00000002 Num hooks: 0 Name: ngctl48803 Type: socket ID: 00000005 Num hooks: 0 door.dino.sk# ifconfig em0.100 create door.dino.sk# ngctl list There are 4 total nodes: Name: Type: ether ID: 00000006 Num hooks: 0 Name: em0 Type: ether ID: 00000001 Num hooks: 0 Name: em1 Type: ether ID: 00000002 Num hooks: 0 Name: ngctl49103 Type: socket ID: 00000007 Num hooks: 0 It looks like the dot in interface name is not handled gracefully here... Regards, Milan