Hi All,
I am working on a creation of a row in ifTable ( project specific 
requirement).
Here i came across a function _mfd_ifTable_commit, in this function a 
certain part of code is repeated twice.

    if (rowreq_ctx->rowreq_flags & MFD_ROW_DIRTY) {
        /*
         * if we successfully commited this row, set the dirty flag. Use the
         * current value + 1 (i.e. dirty = # rows changed).
         * this is checked in post_request...
         */
        ifTable_dirty_set(ifTable_dirty_get() + 1);     /* set table 
dirty flag */
    }

Please help me to understand why this code is written twice.
In my implementation i am able to create a new row. When i try to set a 
column for this row, it is showing that the operation is successful,
but when i do a snmget for that value it is showing me the previous value.

/opt/servers/netsnmp/bin/snmpget  -v 2c -c private 172.16.8.186 
IF-MIB::ifAdminStatus.9
IF-MIB::ifAdminStatus.9 = INTEGER: up(1)
/opt/servers/netsnmp/bin/snmpset  -v 2c -c private 172.16.8.186 
IF-MIB::ifAdminStatus.9 i 2
IF-MIB::ifAdminStatus.9 = INTEGER: down(2)
/opt/servers/netsnmp/bin/snmpget  -v 2c -c private 172.16.8.186 
IF-MIB::ifAdminStatus.9
IF-MIB::ifAdminStatus.9 = INTEGER: up(1)

Please help me to resolve this issue.

Regards,
Manjit



------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to