From 857706f0ce1312da3aa2e10ed6ad84cad9645d6c Mon Sep 17 00:00:00 2001 From: Othmar Gsenger Date: Wed, 27 Feb 2008 18:36:54 +0000 Subject: added network prefix --- Makefile | 4 ++++ networkAddress.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7cd8d5b..a2a14a1 100644 --- a/Makefile +++ b/Makefile @@ -63,6 +63,7 @@ OBJS = anytun.o \ connectionList.o \ connectionParam.o \ networkAddress.o \ + networkPrefix.o \ PracticalSocket.o \ router.o \ routingTable.o \ @@ -169,6 +170,9 @@ connectionList.o: connectionList.cpp connectionList.h connectionParam.o: connectionParam.cpp connectionParam.h $(C++) $(CCFLAGS) $< -c +networkPrefix.o: networkPrefix.cpp networkPrefix.h + $(C++) $(CCFLAGS) $< -c + networkAddress.o: networkAddress.cpp networkAddress.h $(C++) $(CCFLAGS) $< -c diff --git a/networkAddress.h b/networkAddress.h index cbb483d..371abf2 100644 --- a/networkAddress.h +++ b/networkAddress.h @@ -53,9 +53,9 @@ public: void setNetworkAddress(const network_address_type_t type, const char * address ); void getNetworkAddress(const char *); network_address_type_t getNetworkAddressType(); + bool operator<(const NetworkAddress &s) const; private: - bool operator<(const NetworkAddress &s) const; Mutex mutex_; in_addr ipv4_address_; in6_addr ipv6_address_; -- cgit v1.2.3