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

List:       net-snmp-bugs
Subject:    [ net-snmp-Bugs-1768509 ] MIB file with multiple mib modules cause
From:       "SourceForge.net" <noreply () sourceforge ! net>
Date:       2007-08-06 14:52:05
Message-ID: E1II3wD-0008Vo-67 () sc8-sf-web21 ! sourceforge ! net
[Download RAW message or body]

Bugs item #1768509, was opened at 2007-08-06 07:52
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=112694&aid=1768509&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: mibs
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: MIB file with multiple mib modules cause "Cant find module" 

Initial Comment:
The second mib module was missing from .index in the directory, I fixed it like this:

in parce.c/add_mibfile
    /*
     * simple test for this being a MIB 
     */
if (get_token(fp, token2, MAXTOKEN) == DEFINITIONS) {
        new_module(token, tmpstr);
        if (ip)
            fprintf(ip, "%s %s\n", token, d_name);
		
		while( 1 ) 
		{
			tokentype = get_token(fp, token, MAXTOKEN);
			if( tokentype == ENDOFFILE ) break;
			
			if( tokentype == DEFINITIONS )
			{
				new_module( token2, tmpstr );
			    if (ip)
				    fprintf(ip, "%s %s\n", token2, d_name);
			}
			
			token2type = get_token(fp, token2, MAXTOKEN);
			if( token2type == ENDOFFILE ) break;
			
			if( token2type == DEFINITIONS )
			{
				new_module( token, tmpstr );
			    if (ip)
				    fprintf(ip, "%s %s\n", token, d_name);
			}
		}

        fclose(fp);
        return 0;
    } else {
        fclose(fp);
        return 1;
    }

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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
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