Hi Dave,

But In below function and other similar function,
data are not access from below Pointer but try to access the other element of "fTable_data  data;" which are commented.
	/ * some data kept externally
         */
        netsnmp_interface_entry *ifentry;

int
ifMtu_get(ifTable_rowreq_ctx * rowreq_ctx, long *ifMtu_val_ptr)
{
   /** we should have a non-NULL pointer */
    netsnmp_assert(NULL != ifMtu_val_ptr);


    DEBUGMSGTL(("verbose:ifTable:ifMtu_get", "called\n"));

    netsnmp_assert(NULL != rowreq_ctx);

    /*
     * TODO:231:o: |-> Extract the current value of the ifMtu data.
     * copy (* ifMtu_val_ptr ) from rowreq_ctx->data
     */
    (*ifMtu_val_ptr) = rowreq_ctx->data.ifMtu;  /*my doubt is here and in other similar function in                                                                 "if-mib/ifTable/ifTable.c" */

    return MFD_SUCCESS;
}                               /* ifMtu_get */


Rgds,
Sanjay

Dave Shield wrote:
2010/1/19 sanjaykumar <[email protected]>:
  
          I have a doubt regarding IF-MIB.
As I found that We get the data for if Table
from structure "ifTable_data  data;" an member of structure
"ifTable_rowreq_ctx * rowreq_ctx"
but what I observe that most of the member of  structure
"ifTable_data    data; "has been commented .
Then How does the If Table is getting updated ?
    

>From the final field of the ifTable_data structure:

        /*
         * some data kept externally
         */
        netsnmp_interface_entry *ifentry;

This structure is defined in the header file <net-snmp/data_access/interface.h>
and populated by the routines under if-mib/data_access

Dave

  

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to