diff options
author | mcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-10-11 08:32:36 +0000 |
---|---|---|
committer | mcorino <mcorino@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-10-11 08:32:36 +0000 |
commit | 1d5e4351d22f1c89f2873eef630c17110717117d (patch) | |
tree | e3ced0a998a5777453a00be85fdb737092e720b1 /ace/INET_Addr.inl | |
parent | e7261e0b17136d514ed2dec4d4f4b6f60fa716a2 (diff) | |
download | ATCD-1d5e4351d22f1c89f2873eef630c17110717117d.tar.gz |
ChangeLogTag: Tue Oct 11 08:28:12 UTC 2005 Martin Corino <mcorino@remedy.nl>
Diffstat (limited to 'ace/INET_Addr.inl')
-rw-r--r-- | ace/INET_Addr.inl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ace/INET_Addr.inl b/ace/INET_Addr.inl index ce33e072fcc..ea8dc04813b 100644 --- a/ace/INET_Addr.inl +++ b/ace/INET_Addr.inl @@ -193,5 +193,15 @@ ACE_INET_Addr::is_ipv4_mapped_ipv6 (void) const return false; } + +// Return @c true if the IP address is IPv4-compatible IPv6 address. +ACE_INLINE bool +ACE_INET_Addr::is_ipv4_compat_ipv6 (void) const +{ + if (this->get_type () == AF_INET6) + return IN6_IS_ADDR_V4COMPAT (&this->inet_addr_.in6_.sin6_addr); + + return false; +} #endif /* ACE_HAS_IPV6 */ |