2009-04-20 21:37:19 +00:00
|
|
|
--- a/src/linux/net.c
|
|
|
|
+++ b/src/linux/net.c
|
2010-01-17 17:57:24 +00:00
|
|
|
@@ -115,6 +115,7 @@
|
2009-04-20 21:37:19 +00:00
|
|
|
int
|
|
|
|
enable_ip_forwarding(int version)
|
|
|
|
{
|
|
|
|
+#if 0
|
|
|
|
FILE *proc_fwd;
|
|
|
|
const char *const procfile = version == AF_INET ? "/proc/sys/net/ipv4/ip_forward" : "/proc/sys/net/ipv6/conf/all/forwarding";
|
|
|
|
|
2010-01-17 17:57:24 +00:00
|
|
|
@@ -150,6 +151,7 @@
|
2009-04-20 21:37:19 +00:00
|
|
|
}
|
|
|
|
fclose(proc_fwd);
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
2010-01-17 17:57:24 +00:00
|
|
|
@@ -276,6 +278,7 @@
|
2009-04-20 21:37:19 +00:00
|
|
|
OLSR_PRINTF(1, "Restoring network state\n");
|
|
|
|
|
|
|
|
/* Restore IP forwarding to "off" */
|
|
|
|
+#if 0
|
|
|
|
if (orig_fwd_state == '0') {
|
|
|
|
const char *const procfile = version == AF_INET ? "/proc/sys/net/ipv4/ip_forward" : "/proc/sys/net/ipv6/conf/all/forwarding";
|
|
|
|
FILE *proc_fd;
|
2010-01-17 17:57:24 +00:00
|
|
|
@@ -288,6 +291,7 @@
|
2009-04-20 21:37:19 +00:00
|
|
|
fclose(proc_fd);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Restore global ICMP redirect setting */
|
|
|
|
if (orig_global_redirect_state != '0') {
|