On Mon, 2005-10-24 at 11:01 -0400, Robert Story wrote:
> On Mon, 24 Oct 2005 14:01:44 +0100 Dave wrote:
> DS> > I do agree with Peder on shared IPv4/IPv6 storage as a char array (and
> DS> > that's what I did for the data access functions for the MFD re-writes).
> DS> 
> DS> As a raw character array, or some vaguely generic structure ?
> DS> (similar to "struct sockaddr")
> 
> Raw character array. If there is some portable structure that does ipv6 and
> ipv4, i'd be glad to switch to it.


Well, this isn't really my area, so I'm rather hoping Peder might chip
in again.  But not knowing what I'm talking about has never stopped me
before, so I offer the following (hopefully portable) suggestions:

  a)  struct sockaddr

  b)  typedef struct netsnmp_addr_s {
         sa_family_t  ns_family;
         char         ns_data[ N ];    // for some suitable value of N
      } netsnmp_addr

:-)

Dave


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to