Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Nov 2010 14:31:28 +0100
From:      Milan Obuch <freebsd-stable@dino.sk>
To:        freebsd-stable@freebsd.org
Subject:   Re: netgraph and interface nodes
Message-ID:  <201011121431.29613.freebsd-stable@dino.sk>
In-Reply-To: <4CDD3F84.9010901@norma.perm.ru>
References:  <4CDD2B4C.5090106@norma.perm.ru> <201011121327.04287.freebsd-stable@dino.sk> <4CDD3F84.9010901@norma.perm.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
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:<unnamed>        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: <unnamed>       Type: ksocket         ID: 0000012f   Num hooks: 1
>    Name: <unnamed>       Type: l2tp            ID: 0000012d   Num hooks: 3
>    Name: <unnamed>       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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011121431.29613.freebsd-stable>