Hi Dave,
Is this the only way to do it? Are there any alternatives other than changing
the read_mib function?
Regards,
Sowmya
-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf
Of Dave Shield
Sent: Tuesday, May 26, 2009 5:19 PM
To: Sowmya
2009/5/28 Sowmya P Venkatesh svenkat...@ixiacom.com:
Is this the only way to do it? Are there any alternatives other than changing
the read_mib function?
I can't think of anything.
You've asked for functionality that isn't provided by the current code,
so you're going to have to change it.
And
Thanks Dave.
I just came across a function snmp_get_token. This takes a file as a pointer
and sets the token. Is this token the mib name?
Regards,
sowmya
-Original Message-
From: dave.shi...@googlemail.com [mailto:dave.shi...@googlemail.com] On Behalf
Of Dave Shield
Sent: Thursday,
2009/5/28 Sowmya P Venkatesh svenkat...@ixiacom.com:
I just came across a function snmp_get_token. This takes a file as a pointer
and sets the token. Is this token the mib name?
No.
This routine will be called repeatedly when parsing the MIB file,
and will return the next token from the file.
2009/5/26 Sowmya P Venkatesh svenkat...@ixiacom.com:
What my requirement is
Load the mib files and check if they are valid. If so return the mib name.
Have a look at the source code for 'read_mib'
(in the file snmplib/parse.c)
You should be able to tweak (a copy of) this to return the
module