r7300@Kushana: nickm | 2006-08-10 01:36:40 -0700

Distinguish netfilter vs pf at configure time based on headers, not on OS.


svn:r7008
This commit is contained in:
Nick Mathewson
2006-08-10 09:01:46 +00:00
parent 5cff4164a0
commit d893d8c52e
3 changed files with 36 additions and 22 deletions
+11
View File
@@ -13,6 +13,17 @@ const char connection_edge_c_id[] =
#include "or.h"
#ifdef HAVE_LINUX_NETFILTER_IPV4_H
#include <linux/netfilter_ipv4.h>
#define TRANS_NETFILTER
#endif
#if defined(HAVE_NET_IF_H) && defined(HAVE_NET_PFVAR_H)
#include <net/if.h>
#include <net/pfvar.h>
#define TRANS_PF
#endif
/* List of exit_redirect_t */
static smartlist_t *redirect_exit_list = NULL;
-9
View File
@@ -113,15 +113,6 @@
#error "Tor requires libevent to build."
#endif
#ifdef TRANS_NETFILTER
#include <linux/netfilter_ipv4.h>
#endif
#ifdef TRANS_PF
#include <net/if.h>
#include <net/pfvar.h>
#endif
#include "../common/crypto.h"
#include "../common/tortls.h"
#include "../common/log.h"