summaryrefslogtreecommitdiff
path: root/networkAddress.h
diff options
context:
space:
mode:
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_;
}
};