Source
- else if (strcmp((char *) inet_ntoa(sock.sin_addr), x->sock.ipnum) != 0 ||
--- acp.c.orig 2005-10-28 12:18:03.000000000 -0500
+++ acp.c 2011-05-22 18:27:33.000000000 -0500
#include <ctype.h>
#include <signal.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <errno.h>
#include <time.h>
--- procinfo.c.orig 2006-01-07 08:03:13.000000000 -0600
+++ procinfo.c 2011-05-22 18:27:33.000000000 -0500
#include <ctype.h>
#include <signal.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <errno.h>
#include <time.h>
--- tcpproxy.c.orig 2007-08-30 04:36:12.000000000 -0500
+++ tcpproxy.c 2011-05-22 18:27:33.000000000 -0500
#include <ctype.h>
#include <signal.h>
-#include <wait.h>
+#include <sys/wait.h>
#include <errno.h>
#include <time.h>
#include <syslog.h>
#include <sys/time.h>
-#include <linux/netfilter_ipv4.h>
if (*configfile != 0)
read_configuration(config, configfile);
else if (bound == 0 && k >= argc) {
- copy_string(configfile, "/etc/tcpproxy.conf", sizeof(configfile));
+ copy_string(configfile, CONFFILE, sizeof(configfile));
/* This default is the most common cause for tcpproxy installations
* to fail initially.
if (x->redirmode != 0) {
- int rc;
+ //int rc;
size_t socksize;
struct sockaddr_in sock;
socksize = sizeof(sock);
+#if 0
rc = getsockopt(0, SOL_IP, SO_ORIGINAL_DST, &sock, &socksize);
if (rc != 0)