Dave Shield wrote:
On 7 July 2010 08:22, sanjaykumar <[email protected]> wrote:
Does net-snmp support IPv4 and IPv6 at a time ?
Yes.
If we configure the net-snmp-5.4.2.1 with option "--enable-ipv6"
Then it will support only ipv6 or both(ipv4 and ipv6)
Both.
Dave
Hi Dave ,
What will be value of macro "NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE" in
following structure
typedef struct netsnmp_arp_s {
netsnmp_index oid_index; /* MUST BE FIRST!! for container use */
oid ns_arp_index; /* arbitrary index */
int flags; /* for net-snmp use */
oid if_index;
u_char arp_physaddress[NETSNMP_ACCESS_ARP_PHYSADDR_BUF_SIZE];
u_char arp_ipaddress[NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE];
u_char arp_physaddress_len;/* phys address len, 6 */
u_char arp_ipaddress_len; /* ip address len, 4 | 16 */
u_char arp_type; /* inetNetToMediaType 1-5 */
u_char arp_state; /* inetNetToMediaState 1-7 */
} netsnmp_arp_entry;
As this macro depends on version of ip address as defined in
"include/data_access/arp.h"
#if defined( NETSNMP_ENABLE_IPV6 )
# define NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE 16
#else
# define NETSNMP_ACCESS_ARP_IPADDR_BUF_SIZE 4
#endif
_/As macro are compile time entities./_
There are other structure also available which has similar macro for
size of IP Address.
Rgds,
Sanjay
------------------------------------------------------------------------------
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