summaryrefslogtreecommitdiff
path: root/networkAddress.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-02-28 17:09:06 +0000
committerOthmar Gsenger <otti@anytun.org>2008-02-28 17:09:06 +0000
commit62c4bf0fd2b504798c120284958105681f9e20f6 (patch)
treee04cbc56baf28864313da2a26eb4cb43b43fe920 /networkAddress.h
parentreduced routing sync overhead (diff)
further routing fixes
Diffstat (limited to 'networkAddress.h')
-rw-r--r--networkAddress.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/networkAddress.h b/networkAddress.h
index 4217b4a..33cc4b5 100644
--- a/networkAddress.h
+++ b/networkAddress.h
@@ -56,6 +56,7 @@ public:
NetworkAddress(in6_addr);
NetworkAddress(in_addr);
NetworkAddress(uint64_t);
+ NetworkAddress(const network_address_type_t type, const char * address );
~NetworkAddress();
void setNetworkAddress(const network_address_type_t type, const char * address );
void getNetworkAddress(const char *);
@@ -84,7 +85,7 @@ private:
if (network_address_type_==ipv6)
for(int i=0;i<4;i++)
ar & ipv6_address_.s6_addr32;
- if (network_address_type_==ethernet_address_)
+ if (network_address_type_==ethernet)
ar & ethernet_address_;
}
};