From f23912e31c899baef078eeb3ea7afaf8ed607c0c Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 29 Oct 2010 02:39:23 +0000 Subject: Proper build and configure support for transparent proxy --- common/spio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/spio.c') diff --git a/common/spio.c b/common/spio.c index 736ccc2..d5c52ae 100644 --- a/common/spio.c +++ b/common/spio.c @@ -169,7 +169,7 @@ int spio_connect(spctx_t* ctx, spio_t* io, const struct sockaddr_any* sdst, fcntl(fd, F_SETFD, fcntl(fd, F_GETFD, 0) | FD_CLOEXEC); if (ssrc != NULL) { -#ifdef LINUX_NETFILTER +#ifdef HAVE_IP_TRANSPARENT int value = 1; if(setsockopt(fd, SOL_IP, IP_TRANSPARENT, &value, sizeof(value)) < 0) { sp_message(ctx, LOG_DEBUG, "%s: couldn't set transparent mode on connection", -- cgit v1.2.3