From nobody@FreeBSD.org  Thu Mar 21 13:46:00 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 50187F3A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Mar 2013 13:46:00 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 28AA89EE
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Mar 2013 13:46:00 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r2LDjxFo054895
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 21 Mar 2013 13:45:59 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r2LDjxBS054894;
	Thu, 21 Mar 2013 13:45:59 GMT
	(envelope-from nobody)
Message-Id: <201303211345.r2LDjxBS054894@red.freebsd.org>
Date: Thu, 21 Mar 2013 13:45:59 GMT
From: Pavel Derendyaev <paul@reic.ru>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Unnamed netgraph nodes for vlan interfaces
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         177194
>Category:       kern
>Synopsis:       [netgraph] Unnamed netgraph nodes for vlan interfaces
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-net
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 21 13:50:01 UTC 2013
>Closed-Date:    
>Last-Modified:  Wed Mar 27 01:50:27 UTC 2013
>Originator:     Pavel Derendyaev
>Release:        9.1-RELEASE
>Organization:
Maestro Telecom JSC
>Environment:
FreeBSD zebra.reic.ru 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
New naming scheme for vlan interfaces causes in undefined names of according netgraph nodes.

/boot/loader.conf:
ng_ether_load="YES"
ng_ksocket_load="YES"
ng_netflow_load="YES"
ng_one2many_load="YES"
ng_socket_load="YES"

/etc/rc.conf:
ifconfig_fxp0="UP"
ifconfig_em0="UP"
vlans_em0="200 201 202"
ifconfig_em0_200="10.0.1.1/30"          
ifconfig_em0_201="10.0.2.1/30"            
ifconfig_em0_202="10.0.3.1/30"

"ifconfig" shows:
em0.200: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ...
    vlan: 200 parent interface: em0
em0.201: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ...
    vlan: 201 parent interface: em0
em0.202: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
    ...
    vlan: 202 parent interface: em0

Seems like it's ok. But look at "ngctl list":
There are 6 total nodes:
  Name: em0             Type: ether           ID: 00000001   Num hooks: 0
  Name: fxp0            Type: ether           ID: 00000002   Num hooks: 0
  Name: <unnamed>       Type: ether           ID: 00000003   Num hooks: 0
  Name: <unnamed>       Type: ether           ID: 00000004   Num hooks: 0
  Name: <unnamed>       Type: ether           ID: 00000006   Num hooks: 0
  Name: ngctl1962       Type: socket          ID: 00000009   Num hooks: 0

How am I suppose to communicate with these netgraph nodes?

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:

From: "Vadim S. Goncharov" <vgoncharov@nic.ru>
To: bug-followup@FreeBSD.org
Cc: paul@reic.ru
Subject: Re: conf/177194: Unnamed netgraph nodes for vlan interfaces
Date: Tue, 26 Mar 2013 20:45:22 +0400

 You could address them by ID, e.g.:
 
    ngctl msg [003]: getifname
 
 See documentation/articles:
 
    man 4 netgraph
    http://people.freebsd.org/~julian/netgraph.html
 
 or in Russian:
 
    http://citrin.ru/daemonnews/netgraph.html
    http://nuclight.livejournal.com/126612.html
 
 -- 
 Vadim Goncharov     <vgoncharov@nic.ru>           RU-Center
 NET Department                            http://www.nic.ru
 NET-SYS Group             phone:+7(495)737-7646  (ext.4019)
Responsible-Changed-From-To: freebsd-bugs->freebsd-net 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Wed Mar 27 01:50:11 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=177194 
>Unformatted:
