summaryrefslogtreecommitdiff
path: root/ace/INET_Addr.cpp
diff options
context:
space:
mode:
authorjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-02-09 17:03:21 +0000
committerjtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-02-09 17:03:21 +0000
commit06e3b6c047b456455d64f369434106e90efc96ef (patch)
treee22a5289a4661a1d765aa6660bccea2d65e765af /ace/INET_Addr.cpp
parent9fb8c59dabe4b7c398a4fc78e7b46d01bd83cac2 (diff)
downloadATCD-06e3b6c047b456455d64f369434106e90efc96ef.tar.gz
ChangeLogTag: Thu Feb 9 16:59:40 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
Diffstat (limited to 'ace/INET_Addr.cpp')
-rw-r--r--ace/INET_Addr.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/ace/INET_Addr.cpp b/ace/INET_Addr.cpp
index 91b32ae20fe..ece23337d27 100644
--- a/ace/INET_Addr.cpp
+++ b/ace/INET_Addr.cpp
@@ -859,6 +859,9 @@ int ACE_INET_Addr::set_address (const char *ip_addr,
if (this->get_type () == AF_INET && map == 0) {
this->base_set (AF_INET, sizeof (this->inet_addr_.in4_));
+#ifdef ACE_HAS_SOCKADDR_IN_SIN_LEN
+ this->inet_addr_.in4_.sin_len = sizeof (this->inet_addr_.in4_);
+#endif
this->inet_addr_.in4_.sin_family = AF_INET;
this->set_size (sizeof (this->inet_addr_.in4_));
ACE_OS::memcpy (&this->inet_addr_.in4_.sin_addr,
@@ -870,6 +873,9 @@ int ACE_INET_Addr::set_address (const char *ip_addr,
{
// this->set_type (AF_INET);
this->base_set (AF_INET, sizeof (this->inet_addr_.in4_));
+#ifdef ACE_HAS_SOCKADDR_IN_SIN_LEN
+ this->inet_addr_.in4_.sin_len = sizeof (this->inet_addr_.in4_);
+#endif
this->inet_addr_.in4_.sin_family = AF_INET;
this->set_size (sizeof (this->inet_addr_.in4_));
ACE_OS::memcpy (&this->inet_addr_.in4_.sin_addr,
@@ -880,6 +886,9 @@ int ACE_INET_Addr::set_address (const char *ip_addr,
else
{
this->base_set (AF_INET6, sizeof (this->inet_addr_.in6_));
+#ifdef ACE_HAS_SOCKADDR_IN6_SIN6_LEN
+ this->inet_addr_.in6_.sin6_len = sizeof (this->inet_addr_.in6_);
+#endif
this->inet_addr_.in6_.sin6_family = AF_INET6;
this->set_size (sizeof (this->inet_addr_.in6_));
if (ip4 == INADDR_ANY)