From mistral@imasy.or.jp  Sun Feb 26 18:31:59 2006
Return-Path: <mistral@imasy.or.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B528816A420;
	Sun, 26 Feb 2006 18:31:59 +0000 (GMT)
	(envelope-from mistral@imasy.or.jp)
Received: from shimako.yamayuri.org (yumi.yamayuri.org [218.45.22.23])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 43EE143D58;
	Sun, 26 Feb 2006 18:31:59 +0000 (GMT)
	(envelope-from mistral@imasy.or.jp)
Received: from shimako.yamayuri.org (localhost [127.0.0.1])
	by shimako.yamayuri.org (8.13.4/8.13.4/shimako) with ESMTP id k1QIVxi6002502
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Mon, 27 Feb 2006 03:32:00 +0900 (JST)
	(envelope-from mistral@imasy.or.jp)
Received: (from sarumaru@localhost)
	by shimako.yamayuri.org (8.13.4/8.13.4/Submit) id k1QIVxCb002501;
	Mon, 27 Feb 2006 03:31:59 +0900 (JST)
	(envelope-from sarumaru)
Message-Id: <200602261831.k1QIVxCb002501@shimako.yamayuri.org>
Date: Mon, 27 Feb 2006 03:31:59 +0900 (JST)
From: Yoshihiko Sarumaru <mistral@imasy.or.jp>
Reply-To: Yoshihiko Sarumaru <mistral@imasy.or.jp>
To: FreeBSD-gnats-submit@freebsd.org
Cc: harti@freebsd.org
Subject: OIDX_name is missing in gensnmptree(1)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         93871
>Category:       docs
>Synopsis:       OIDX_name is missing in gensnmptree(1)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb 26 18:40:02 GMT 2006
>Closed-Date:    Mon Feb 27 09:36:06 GMT 2006
>Last-Modified:  Mon Feb 27 09:47:46 GMT 2006
>Originator:     Yoshihiko Sarumaru
>Release:        FreeBSD 6.1-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD shimako.yamayuri.org 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #1: Fri Feb 24 00:52:39 JST 2006 sarumaru@shimako.yamayuri.org:/usr/obj/usr/src/sys/VGN-T72 i386


	
>Description:
(1)
"One define OID_name can be used as an array initialized to
initialize a struct asn_oid."

I couldn't understand the meaning of "initialized". Is it a typo
of initializer ?

(2)
`gensnmptree -e sysName' generates following these 3 lines:
#define OID_sysName     5
#define OIDLEN_sysName  8
#define OIDX_sysName    { 8, { 1, 3, 6, 1, 2, 1, 1, 5, } }

By the way, the sentense

| One define OID_name can be used as an array initialized to
| initialize a struct asn_oid.

seems telling about not OID_name, but OIDX_name. Am I miss
understanding something? 

Also in the sentence:

| It reads a MIB specification from standard input and for each
| MIB variable name emits two C pre-processor defines on its
| standard output.

this may means gensnmptree prints 2 lines, but it generates 3
lines actually. Is it correct?
	
>How-To-Repeat:
	man 1 gensnmptree
>Fix:
	I'm not sure
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: harti 
State-Changed-When: Mon Feb 27 09:35:49 UTC 2006 
State-Changed-Why:  
Fixed. Thanks. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=93871 

Adding to audit trail from misfiled PR docs/93894:

Date: Mon, 27 Feb 2006 10:33:38 +0100 (CET)
From: Harti Brandt <hartmut.brandt@dlr.de>
 
 YS>"One define OID_name can be used as an array initialized to
 YS>initialize a struct asn_oid."
 YS>
 YS>I couldn't understand the meaning of "initialized". Is it a typo
 YS>of initializer ?
 
 Hmm. I wonder what I tried to say there. It should say:
 
 "The OID_name can be used to initialize a struct asn_oid."
 
 I fix this.
 
 YS>
 YS>(2)
 YS>`gensnmptree -e sysName' generates following these 3 lines:
 YS>#define OID_sysName     5
 YS>#define OIDLEN_sysName  8
 YS>#define OIDX_sysName    { 8, { 1, 3, 6, 1, 2, 1, 1, 5, } }
 YS>
 YS>By the way, the sentense
 YS>
 YS>| One define OID_name can be used as an array initialized to
 YS>| initialize a struct asn_oid.
 YS>
 YS>seems telling about not OID_name, but OIDX_name. Am I miss
 YS>understanding something? 
 
 No. It seems I just did not update the man page when I added the other 
 define. OID_name is just the last component of the OID. OIDX_name is an 
 initializer for an struct asn_oid. If fix this.
 
 YS>
 YS>Also in the sentence:
 YS>
 YS>| It reads a MIB specification from standard input and for each
 YS>| MIB variable name emits two C pre-processor defines on its
 YS>| standard output.
 YS>
 YS>this may means gensnmptree prints 2 lines, but it generates 3
 YS>lines actually. Is it correct?
 
 It should read 'three'.
 
 YS>>How-To-Repeat:
 YS>	man 1 gensnmptree
 YS>>Fix:
 YS>	I'm not sure
 
 Thanks for the report.
 
 I will import bsnmp today and this should be fixed.
 
 harti
>Unformatted:
