summaryrefslogtreecommitdiff
path: root/src/networkAddress.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/networkAddress.h')
-rw-r--r--src/networkAddress.h8
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: