On Thu, 2005-10-06 at 23:15 +0200, Thomas Anders wrote:
> Antonin Kral wrote:

> >                                          Don't you have some
> > pointers, what is needed to be implemented? Because I should
> > be able to invest some manpower to solve this.
> 
> That's something we *love* to hear (in general).

Definitely!

>                                     I have no idea how hard 
> it is to port the IF-MIB rewrite to Windows (any Un*x would
>  probably be easier)

Possibly, though it's almost certainly *MUCH* easier to port
the IF-MIB rewrite, than doing this for the original code.

There's really only one pair of files that need to be coded:

        mibgroup/if-mib/data_access/interface_XXXX.[ch]

Robert's the expert here, but AFAICS, this should contain
the following routines:

        netsnmp_arch_interface_init
        netsnmp_arch_interface_index_find
        netsnmp_arch_interface_container_load
        netsnmp_arch_interface_get_if_speed
        

Most of the work is done by
        netsnmp_arch_interface_container_load

which should retrieve the list of interfaces from the
underlying O/S, and store these in a standard format.
See the "interface_linux.c" version for a general guide
as to how this should be done (though the details will
obviously be very different for Windows!)

The purpose of the other three routines should be fairly
obvious - again, see the linux code for guidance.



>  but others will most certainly chime in here.

Robert - care to correct or expand on any of the above?
I'm also wondering whether we should supply a simple

        interface_template.[ch]

pair of files, containing the bare structure of what's
needed for a new port.


Porting this re-write to Windows is likely to prove
an extremely valuable test of how clean this new
structure is.  If that goes fairly smoothly, anything
else should be trivial!

Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to