Bug 93894

Summary: Re: OIDX_name is missing in gensnmptree(1)
Product: Documentation Reporter: hartmut.brandt
Component: Books & ArticlesAssignee: freebsd-doc (Nobody) <doc>
Status: Closed FIXED    
Severity: Affects Only Me CC: FreeBSD-gnats-submit
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description hartmut.brandt 2006-02-27 09:40:06 UTC
 On Mon, 27 Feb 2006, Yoshihiko Sarumaru wrote:
 
 YS>
 YS>>Submitter-Id:	current-users
 YS>>Originator:	Yoshihiko Sarumaru
 YS>>Organization:	
 YS>>Confidential:	no 
 YS>>Synopsis:	OIDX_name is missing in gensnmptree(1)
 YS>>Severity:	non-critical
 YS>>Priority:	medium
 YS>>Category:	docs
 YS>>Class:		doc-bug
 YS>>Release:	FreeBSD 6.1-PRERELEASE i386
 YS>>Environment:
 YS>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
 YS>
 YS>
 YS>	
 YS>>Description:
 YS>(1)
 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
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2006-02-27 09:45:45 UTC
State Changed
From-To: open->closed

Misfiled followup to docs/93871; content migrated. 


Comment 2 Mark Linimon freebsd_committer freebsd_triage 2006-02-27 09:45:45 UTC
Responsible Changed
From-To: gnats-admin->freebsd-doc