On Tue, 2005-10-18 at 22:20 -0700, Wes Hardaker wrote:
> The ipaddr type confuses most people because the datatype is *often*
> stored as an integer.  However, it is in fact a string on the wire

I'm not sure that the on-the-wire representation is particularly
relevant here. Surely what's important is how the Net-SNMP library
stores an IP address internally?

  If it stores it as an integer, then this would most naturally
be handled in local byte order (and any conversion done as part
of building/parsing the actual packet).  If it stores it as a
string, then it makes more sense to handle the byte-ordering
when the string value is set or read (presumably via a suitable
utility routine).


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