Hi all,
I am having a small problem with Ip::Address::IsAnyAddr method. As it
is implemented in the case the ipaddress is an IPv4 address and it is
AnyAddr, the IsAnyAddr method will return false.
I believe we should fix it as follows:
=== modified file 'src/ip/Address.cc'
--- src/ip/Address.cc 2011-05-27 13:52:35 +0000
+++ src/ip/Address.cc 2011-06-29 09:23:49 +0000
@@ -185,7 +185,7 @@
bool
Ip::Address::IsAnyAddr() const
{
- return IN6_IS_ADDR_UNSPECIFIED( &m_SocketAddr.sin6_addr );
+ return IN6_IS_ADDR_UNSPECIFIED( &m_SocketAddr.sin6_addr ) ||
IN6_ARE_ADDR_EQUAL( &m_SocketAddr.sin6_addr, &v4_anyaddr);
}
/// NOTE: Does NOT clear the Port stored. Ony the Address and Type.
Received on Wed Jun 29 2011 - 09:27:13 MDT
This archive was generated by hypermail 2.2.0 : Wed Jun 29 2011 - 12:00:05 MDT