diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-02-28 17:09:06 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-02-28 17:09:06 +0000 |
commit | 62c4bf0fd2b504798c120284958105681f9e20f6 (patch) | |
tree | e04cbc56baf28864313da2a26eb4cb43b43fe920 /networkAddress.h | |
parent | reduced routing sync overhead (diff) |
further routing fixes
Diffstat (limited to 'networkAddress.h')
-rw-r--r-- | networkAddress.h | 3 |
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_; } }; |