On 24 August 2010 13:48, <anup.shan...@emc.com> wrote: > snmp_set_var_typed_integer( idx, ASN_IPADDRESS, > ntohl(entry->vplexDirectorPrimaryIpAddr) );
The SMI type IpAddress is not an integer-based type. It is a (four-octet) binary string, which holds the address in network-byte order. See RFC 2758, section 7.1.5 You *might* be able to get away with treating it as an integer in this way, but I certainly don't think you should be returning it in host order. Dave ------------------------------------------------------------------------------ Sell apps to millions through the Intel(R) Atom(Tm) Developer Program Be part of this innovative community and reach millions of netbook users worldwide. Take advantage of special opportunities to increase revenue and speed time-to-market. Join now, and jumpstart your future. http://p.sf.net/sfu/intel-atom-d2d _______________________________________________ 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