Hello, I use an IpAddress in my MIB, I generate codes with mib2c and I have a problem of the presentation:
my example : snmpget -v1 -c public host:161 MY-MIB::myAddress.172.16.14.1 MY-MIB::myAddress.172.16.14.1 = IpAddress: 1.14.16.172 I think is a bad presentation du to the network/host interface: in the function : myTable_interface.c::myTable_get_column in the case of address column I put: (*var->val.integer) = htonl( rowreq_ctx->tbl_idx.ndtAddress); the presentation is now correct: snmpget -v1 -c public host:161 MY-MIB::myAddress.172.16.14.1 MY-MIB::myAddress.172.16.14.1 = IpAddress: 172.16.14.1 I think this file, myTable_interface.c, must not be modified by the user, isn't? ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users