[AGENT++] Questions Jochen Katz

qqbao qqbao at fiberhome.com.cn
Tue Nov 22 05:31:58 CET 2011


Hi, 
> this is caused by the ipv4 to ipv6 mapping. For default Linux, this is
> enabled on IPv6 sockets and as snmp++ does not enable the IPV6_V6ONLY on
> the v6 socket, the bind fails, as the ipv4 part is in use.

> You can either do a "echo 1 > /proc/sys/net/ipv6/bindv6only" or patch
> the ipv6 part of CNotifyEventQueue::AddEntry() function to use setsockopt():

> I think, this is worth a cofiguration option...
        Thanks for your reply! This problem has been fixed with your help. > > In Sun Solaris10 system (64bit), the ipv6 version of snmp++ library
> > crashed in the following code:

> Is unsigned int a 64 bit value? Then replace scope and scope_ptr by a
> 32bit type and tell me if this fixed it.
     Sorry, I omitted some information yesterday. This crash only occurs on solaris sparc(64bit) platform.     It works normal on solaris x86(64bit) platform.    Unsigned int is already 32bit but the size of the pointer is 64bit.        Following are the size of the basic types in the solaris sparc(64bit) system.                int : 32bit        unsigned int : 32bit      long  : 64bit      unsigned long : 64bit      short : 16bit      unsigned short : 16bit                            I have no idea how to fix it. Could you give me some advice ?
Qiquan Bao



More information about the AGENTPP mailing list