mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user