summaryrefslogtreecommitdiff
path: root/networkAddress.h
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-11-04 19:22:40 +0000
committerOthmar Gsenger <otti@anytun.org>2007-11-04 19:22:40 +0000
commitfbbc61cc250a6c15c7ab741bc4cb9be063f497fd (patch)
treeb3198773b3987b853bd386e9c81bc7c4aa35a304 /networkAddress.h
parentadded Address Class and Connection List (diff)
addres set and < operator
Diffstat (limited to 'networkAddress.h')
-rw-r--r--networkAddress.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/networkAddress.h b/networkAddress.h
index 59430e5..cbb483d 100644
--- a/networkAddress.h
+++ b/networkAddress.h
@@ -34,6 +34,10 @@
#include "threadUtils.hpp"
#include "datatypes.h"
+#include <sys/socket.h>
+#include <netinet/in.h>
+#include <arpa/inet.h>
+
enum network_address_type_t
{
ipv4,
@@ -53,7 +57,9 @@ public:
private:
bool operator<(const NetworkAddress &s) const;
Mutex mutex_;
- uint8_t address_length_;
+ in_addr ipv4_address_;
+ in6_addr ipv6_address_;
+ uint64_t ethernet_address_;
network_address_type_t network_address_type_;
};