From owner-freebsd-stable@FreeBSD.ORG Fri Nov 12 13:31:29 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 EF93B106564A for ; Fri, 12 Nov 2010 13:31:28 +0000 (UTC) (envelope-from freebsd-stable@dino.sk) Received: from loki.netlab.sk (ns3.netlab.sk [84.245.65.11]) by mx1.freebsd.org (Postfix) with ESMTP id AF2D18FC12 for ; Fri, 12 Nov 2010 13:31:28 +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 14:40:03 +0100 id 00033C04.4CDD43B3.0000DFB9 From: Milan Obuch To: freebsd-stable@freebsd.org Date: Fri, 12 Nov 2010 14:31:28 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.5.3; i386; ; ) References: <4CDD2B4C.5090106@norma.perm.ru> <201011121327.04287.freebsd-stable@dino.sk> <4CDD3F84.9010901@norma.perm.ru> In-Reply-To: <4CDD3F84.9010901@norma.perm.ru> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011121431.29613.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 13:31:29 -0000 On Friday 12 November 2010 14:22:12 Eugene M. Zheganin wrote: > Hi. > > On 12.11.2010 17:27, Milan Obuch wrote: > > 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... > > Nothing: > > %kldstat > Id Refs Address Size Name > 1 57 0xc0400000 8c50f4 kernel > 2 1 0xc0cc6000 4beb8 if_em.ko > 4 1 0xc0d17000 2424 accf_http.ko > 5 1 0xc0d1a000 bfe0 ipmi.ko > 6 2 0xc0d26000 1bd0 smbus.ko > 7 1 0xc0d28000 27cc ng_ipfw.ko > 8 1 0xc6c38000 5000 if_vlan.ko > 9 1 0xc6ec1000 5000 ng_netflow.ko > 10 1 0xc71c0000 26000 linux.ko > 11 1 0xc72a4000 4000 ng_mppc.ko > 12 1 0xc72a8000 2000 rc4.ko > 13 1 0xc77ca000 4000 ng_nat.ko > 14 1 0xc7dbe000 5000 ng_l2tp.ko > 15 1 0xc7e43000 5000 ng_ksocket.ko > 16 1 0xc7eea000 3000 ng_tcpmss.ko > 17 1 0xc9197000 3000 ng_eiface.ko > 18 1 0xcbc81000 3000 ng_vlan.ko > %ngctl list > There are 14 total nodes: > Name: Type: ksocket ID: 0000012f Num hooks: 1 > Name: Type: l2tp ID: 0000012d Num hooks: 3 > Name: Type: socket ID: 0000012c Num hooks: 1 > Name: ng0 Type: iface ID: 00000133 Num hooks: 1 > Name: ngctl54909 Type: socket ID: 0000013c Num hooks: 0 > Name: mpd94408-stats Type: socket ID: 00000135 Num hooks: 0 > Name: ipfw Type: ipfw ID: 00000001 Num hooks: 2 > Name: mpd94408-cso Type: socket ID: 0000012a Num hooks: 0 > Name: mpd94408-eso Type: socket ID: 0000012b Num hooks: 0 > Name: nat Type: nat ID: 0000000a Num hooks: 2 > Name: mpd94408-lso Type: socket ID: 00000129 Num hooks: 1 > Name: mpd94408-B2-3-mss Type: tcpmss ID: 00000136 Num hooks: > 2 Name: mpd94408-B2-3 Type: ppp ID: 00000134 Num hooks: 3 > Name: mpd94408-L1-2-lt Type: tee ID: 00000130 Num hooks: 2 > %ifconfig -l > em0 em1 ipfw0 lo0 vlan1 vlan2 vlan3 vlan5 vlan6 vlan9 vlan10 vlan11 > vlan12 vlan21 vlan104 vlan15 vlan818 ng0 > > Eugene. > # kldstat Id Refs Address Size Name 1 45 0xc0400000 50005c kernel 2 1 0xc0901000 6434 vesa.ko 3 1 0xc0908000 5e4c if_vlan.ko 4 1 0xc090e000 4b690 if_em.ko 5 1 0xc095a000 4554 ng_ether.ko 6 3 0xc095f000 d944 netgraph.ko 7 1 0xc096d000 947c uhci.ko 8 3 0xc0977000 241e4 usb.ko 9 1 0xc099c000 b2a4 ehci.ko 10 1 0xc09a8000 4f8c ichsmb.ko 11 3 0xc09ad000 1be0 smbus.ko 12 1 0xc09af000 362c smb.ko 13 1 0xc09b3000 3d84 ichwd.ko 14 1 0xc45a5000 4000 if_gre.ko 15 1 0xc46d6000 2f000 pf.ko 16 1 0xc7721000 4000 ng_socket.ko I see no ng_ether module in your list, or did I somehow misinterpreted your query? Regards, Milan