aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-05 14:51:07 -0400
committerNick Mathewson <nickm@torproject.org>2018-07-05 14:51:07 -0400
commit0adcfbc7c8b579ebfe4c16c86700e8b466fc9a56 (patch)
treeb6bba4d836d10e6285e357de9970bfdc3eb3b8a9
parent24c0f83185a9c5dff080b250d9a8e15bbf8e1a88 (diff)
downloadtor-0adcfbc7c8b579ebfe4c16c86700e8b466fc9a56.tar.gz
tor-0adcfbc7c8b579ebfe4c16c86700e8b466fc9a56.zip
Move address_set to src/or
This is temporary, until src/or is split. Putting this in containers would be another logical alternative, except that addresses depend on containers, and we don't like cycles.
-rw-r--r--src/common/include.am2
-rw-r--r--src/or/address_set.c (renamed from src/common/address_set.c)2
-rw-r--r--src/or/address_set.h (renamed from src/common/address_set.h)0
-rw-r--r--src/or/include.am2
-rw-r--r--src/or/nodelist.c2
-rw-r--r--src/test/test_address_set.c2
6 files changed, 5 insertions, 5 deletions
diff --git a/src/common/include.am b/src/common/include.am
index 565482bcf9..de4ecbaeea 100644
--- a/src/common/include.am
+++ b/src/common/include.am
@@ -18,7 +18,6 @@ libor_extra_source=
endif
LIBOR_A_SRC = \
- src/common/address_set.c \
src/common/token_bucket.c \
src/common/workqueue.c \
$(libor_extra_source)
@@ -49,7 +48,6 @@ src_common_libor_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
src_common_libor_event_testing_a_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
COMMONHEADERS = \
- src/common/address_set.h \
src/common/compat_libevent.h \
src/common/procmon.h \
src/common/timers.h \
diff --git a/src/common/address_set.c b/src/or/address_set.c
index 1bd1462387..927a5597c0 100644
--- a/src/common/address_set.c
+++ b/src/or/address_set.c
@@ -11,7 +11,7 @@
**/
#include "orconfig.h"
-#include "common/address_set.h"
+#include "or/address_set.h"
#include "lib/net/address.h"
#include "lib/container/bloomfilt.h"
#include "lib/crypt_ops/crypto_rand.h"
diff --git a/src/common/address_set.h b/src/or/address_set.h
index 2efa1cb03b..2efa1cb03b 100644
--- a/src/common/address_set.h
+++ b/src/or/address_set.h
diff --git a/src/or/include.am b/src/or/include.am
index 9b5f7c1f60..ad7ee69bf5 100644
--- a/src/or/include.am
+++ b/src/or/include.am
@@ -19,6 +19,7 @@ EXTRA_DIST+= src/or/ntmain.c src/or/Makefile.nmake
LIBTOR_APP_A_SOURCES = \
src/or/addressmap.c \
+ src/or/address_set.c \
src/or/bridges.c \
src/or/channel.c \
src/or/channelpadding.c \
@@ -180,6 +181,7 @@ endif
ORHEADERS = \
src/or/addressmap.h \
+ src/or/address_set.h \
src/or/addr_policy_st.h \
src/or/authority_cert_st.h \
src/or/auth_dirs.inc \
diff --git a/src/or/nodelist.c b/src/or/nodelist.c
index bc04ab9526..51fd0015df 100644
--- a/src/or/nodelist.c
+++ b/src/or/nodelist.c
@@ -42,7 +42,7 @@
#include "or/or.h"
#include "lib/net/address.h"
-#include "common/address_set.h"
+#include "or/address_set.h"
#include "or/bridges.h"
#include "or/config.h"
#include "or/control.h"
diff --git a/src/test/test_address_set.c b/src/test/test_address_set.c
index 3699685848..ec4e6b7e87 100644
--- a/src/test/test_address_set.c
+++ b/src/test/test_address_set.c
@@ -3,7 +3,7 @@
#include "or/or.h"
#include "lib/crypt_ops/crypto_rand.h"
-#include "common/address_set.h"
+#include "or/address_set.h"
#include "or/microdesc.h"
#include "or/networkstatus.h"
#include "or/nodelist.h"