packages/net/olsrd/patches/100-no_forwarding_override.patch
acinonyx f4c90b5224 [packages] olsrd: Upgrade to v0.5.6-r6
git-svn-id: svn://svn.openwrt.org/openwrt/packages@18043 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-10-12 14:32:24 +00:00

35 lines
936 B
Diff

--- a/src/linux/net.c
+++ b/src/linux/net.c
@@ -107,6 +107,7 @@ bind_socket_to_device(int sock, char *de
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";
@@ -142,6 +143,7 @@ enable_ip_forwarding(int version)
}
fclose(proc_fwd);
}
+#endif
return 1;
}
@@ -268,6 +270,7 @@ restore_settings(int version)
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;
@@ -280,6 +283,7 @@ restore_settings(int version)
fclose(proc_fd);
}
}
+#endif
/* Restore global ICMP redirect setting */
if (orig_global_redirect_state != '0') {