Re: Does net-snmp support IPv4 and IPv6 at a time ?

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 7 July 2010 10:16, sanjaykumar <[email protected]> wrote:
> What will be value of macro "NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE" in
> following structure
>
> typedef struct netsnmp_arp_s

That depends on how you've compiled the software.
If you've enabled IPv6 support, then the 'arp_ipaddress'
buffer will be 16 bytes - big enough to hold either an
IPv4 or an IPv6 address.

If you haven't enabled IPv6 support, then the buffer
will be 4 bytes - big enough to hold an IPv4 address.
(It doesn't need to be any bigger than this for an IPv4-only
configuration, so it would be wasteful to make it larger)



> There are other structure also available which has similar
> macro for size of IP Address.

The same reasoning will doubtless apply there too.

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.