diff options
author | Othmar Gsenger <otti@anytun.org> | 2008-12-21 15:03:59 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2008-12-21 15:03:59 +0000 |
commit | 9cd4786758a3e46c32c4536ff51bb2b81811507f (patch) | |
tree | 6ad8743850abd2e110558eecc7d46bcf6d25a619 /src/networkAddress.h | |
parent | include path fixed for windows TunDevice (diff) |
added ipv6 routing support
routing still only works if all routes have the same netmask
Diffstat (limited to 'src/networkAddress.h')
-rw-r--r-- | src/networkAddress.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/networkAddress.h b/src/networkAddress.h index e2228d5..3eb0b51 100644 --- a/src/networkAddress.h +++ b/src/networkAddress.h @@ -42,9 +42,9 @@ enum network_address_type_t { - ipv4, - ipv6, - ethernet + ipv4=0, + ipv6=1, + ethernet=2 }; class NetworkAddress @@ -59,7 +59,7 @@ public: NetworkAddress(const network_address_type_t type, const std::string & address ); ~NetworkAddress(); void setNetworkAddress(const network_address_type_t type, const std::string & address ); - network_address_type_t getNetworkAddressType(); + network_address_type_t getNetworkAddressType() const; std::string toString() const; bool operator<(const NetworkAddress &s) const; protected: |