From owner-freebsd-stable@FreeBSD.ORG Fri Nov 12 13:22:21 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 60844106564A for ; Fri, 12 Nov 2010 13:22:21 +0000 (UTC) (envelope-from emz@norma.perm.ru) Received: from elf.hq.norma.perm.ru (mail.norman-vivat.ru [89.250.210.68]) by mx1.freebsd.org (Postfix) with ESMTP id DB60C8FC20 for ; Fri, 12 Nov 2010 13:22:19 +0000 (UTC) Received: from bsdrookie.norma.com. (bsdrookie.hq.norma.perm.ru [192.168.7.246]) by elf.hq.norma.perm.ru (8.14.3/8.14.3) with ESMTP id oACDMCZA046705 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 12 Nov 2010 18:22:13 +0500 (YEKT) (envelope-from emz@norma.perm.ru) Message-ID: <4CDD3F84.9010901@norma.perm.ru> Date: Fri, 12 Nov 2010 18:22:12 +0500 From: "Eugene M. Zheganin" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.8) Gecko/20100917 Thunderbird/3.1.2 MIME-Version: 1.0 To: freebsd-stable@freebsd.org References: <4CDD2B4C.5090106@norma.perm.ru> <201011121307.23133.zec@icir.org> <201011121327.04287.freebsd-stable@dino.sk> In-Reply-To: <201011121327.04287.freebsd-stable@dino.sk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (elf.hq.norma.perm.ru [192.168.3.10]); Fri, 12 Nov 2010 18:22:13 +0500 (YEKT) X-Callback: Sender verified by milter-callback 1.5.10 at elf.hq.norma.perm.ru. X-Callback-Status: relay [192.168.7.246] found in white list. X-Callback-Envelope-From: emz@norma.perm.ru X-Spam-Status: No hits=-102.9 bayes=0.0000 testhits ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100 autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on elf.hq.norma.perm.ru 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:22:21 -0000 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.