[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor/master] Move address_set to src/or
commit 0adcfbc7c8b579ebfe4c16c86700e8b466fc9a56
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date: Thu Jul 5 14:51:07 2018 -0400
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.
---
src/common/include.am | 2 --
src/{common => or}/address_set.c | 2 +-
src/{common => or}/address_set.h | 0
src/or/include.am | 2 ++
src/or/nodelist.c | 2 +-
src/test/test_address_set.c | 2 +-
6 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/common/include.am b/src/common/include.am
index 565482bcf..de4ecbaee 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
similarity index 98%
rename from src/common/address_set.c
rename to src/or/address_set.c
index 1bd146238..927a5597c 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
similarity index 100%
rename from src/common/address_set.h
rename to src/or/address_set.h
diff --git a/src/or/include.am b/src/or/include.am
index 9b5f7c1f6..ad7ee69bf 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 bc04ab952..51fd0015d 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 369968584..ec4e6b7e8 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"
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits