diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-08-10 09:01:46 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-08-10 09:01:46 +0000 |
commit | d893d8c52ed7a66eaea630cffe94cdaf82fbc99d (patch) | |
tree | a5f150c89866f69116da7ffa6c31568bc2bfdfd8 /src/or/connection_edge.c | |
parent | 5cff4164a08af2a869e5e85aa6d359b865eee9aa (diff) | |
download | tor-d893d8c52ed7a66eaea630cffe94cdaf82fbc99d.tar.gz tor-d893d8c52ed7a66eaea630cffe94cdaf82fbc99d.zip |
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
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 289538e6f6..62fa699e00 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -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; |