On Mon, 03 Jan 2011 09:08:31 +0100 Magnus wrote:
MF> As an aside I'd like to know why netsnmp_sockaddr_storage is needed, as
MF> opposed to sockaddr_storage from sys/socket.h? Is it some ancient unix
MF> stuff from when ipv6 was supported through extensions or what?

mostly because netsnmp_sockaddr_storage is ~28 bytes, and sockaddr_storage is
128 bytes. But netsnmp_sockaddr_storage is also a union, letting you get at
the data as various types without casting, whereas sockaddr_storage is
basically just a byte array.

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to