[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-1540745 ] bug : "OBJECT-GROUP" instead of
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2006-08-15 16:43:24
Message-ID: E1GD20i-0004dN-E2 () sc8-sf-web4 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1540745, was opened at 2006-08-15 18:38
Message generated for change (Comment added) made by tanders
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1540745&group_id=12694

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug : "OBJECT-GROUP" instead of "OBJECT-IDENTITY"

Initial Comment:
Platforms : all
version  : net-snmp-5.3.1


EXAMPLE: net-snmp("snmpUDPDomain OBJECT-IDENTITY") =>
"OBJECT-GROUP"


Please find the 5  following corrections (patch code
for OBJECT-IDENTITY)


file:	parce.h

#define TYPE_OBJIDENTITY    27



file:	parce.c
#define OBJIDENTITY 106



file:	parce.c
static struct tok tokens[] = {

//  {"OBJECT-IDENTITY", sizeof("OBJECT-IDENTITY") - 1,
OBJGROUP}
//=>
    
    {"OBJECT-IDENTITY", sizeof("OBJECT-IDENTITY") - 1,
OBJIDENTITY}



file:	parse.c
func:	build_translation_table()

        case OBJIDENTITY:
            translation_table[count] = TYPE_OBJIDENTITY;
            break;



file:	parse.c
func:	parse(

        case OBJIDENTITY:
            nnp = parse_objectgroup(fp, name, OBJECTS,
&objects);
            if (nnp == NULL) {
                print_error("Bad parse of
OBJECT-IDENTITY", NULL, type);
                return NULL;
            }
            break;



file:	mib.c
func:	sprint_realloc_description

        case TYPE_OBJIDENTITY:
            cp = " OBJECT-IDENTITY";
            break;


Regards,
Jerome.


----------------------------------------------------------------------

>Comment By: Thomas Anders (tanders)
Date: 2006-08-15 18:43

Message:
Logged In: YES 
user_id=848638

Please submit patches in unified diff format ("diff -u")
against a recent version. Thanks you.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1540745&group_id=12694

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-bugs mailing list
Net-snmp-bugs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic