summaryrefslogtreecommitdiff
path: root/networkAddress.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-12-07 15:07:11 +0000
committerOthmar Gsenger <otti@anytun.org>2007-12-07 15:07:11 +0000
commit28063bacec25253d5c67668932321c2044d1aa02 (patch)
tree951a787537b00877c4533dd19c75206e609853f3 /networkAddress.cpp
parentserialisation of buffer und connection param (diff)
serialisation & makefile fix
Diffstat (limited to 'networkAddress.cpp')
-rw-r--r--networkAddress.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/networkAddress.cpp b/networkAddress.cpp
index ca132db..cd40d86 100644
--- a/networkAddress.cpp
+++ b/networkAddress.cpp
@@ -62,6 +62,7 @@ void NetworkAddress::getNetworkAddress(const char *)
network_address_type_t NetworkAddress::getNetworkAddressType()
{
+ return network_address_type_;
}
bool NetworkAddress::operator<(const NetworkAddress &right) const
@@ -72,7 +73,7 @@ bool NetworkAddress::operator<(const NetworkAddress &right) const
{
return (ipv4_address_.s_addr < right.ipv4_address_.s_addr);
} else if (network_address_type_==ipv6) {
- for(int i=0;i++;i<4)
+ for(int i=0;i<4;i++)
if (ipv6_address_.s6_addr32[i]<right.ipv6_address_.s6_addr32[i])
return true;
return false;
@@ -81,5 +82,6 @@ bool NetworkAddress::operator<(const NetworkAddress &right) const
} else {
//TODO
}
+ return false;
}