
-----Original Message----- From: Juergen Schoenwaelder
winston writes:
winston> Mmm not really what I want. The user just selects the MIB winston> files he wants to load, I don't know those files in advance winston> so I can't do the mapping.
Then forget it unless you want to build some hyper magic artificial intelligence search engine. In C, if I #include a file, then a file with that name has to exist. In java, if I import a class, then the appropriate file has to be exist somewhere. If people put stuff into ugly places, then they get what they ask for.
winston> Btw, besides filenames without extensions on win32 does winston> libsmi recognize other MIB extensions for autoload? Like : winston> .my, .mib, etc.
It recognizes a few of them already I think. Try it and look at the source code. ;-)
net-snmp tries to generate an index in each directory mapping MIB names to the file name containing them.
Any reason why libsmi can't do the same thing?
Regards, Andrew Hood A distributed system is one in which the failure of a computer you didn't even know existed can render your own computer unusable. -- Leslie Lamport, as quoted in CACM, June 1992

Hi!
Andy> net-snmp tries to generate an index in each directory mapping Andy> MIB names to the file name containing them.
Andy> Any reason why libsmi can't do the same thing?
I could imagine this. However, I think it's not always a win to have too much magic.
-frank

HOOD, Andy writes:
Andrew> net-snmp tries to generate an index in each directory mapping Andrew> MIB names to the file name containing them.
Sure, can be done. Not sure it is worth the effort - better avoid name mappings in the first place. But sure, this is my totally biased opinion.
/js
participants (3)
-
Frank Strauss
-
HOOD, Andy
-
Juergen Schoenwaelder