2009-04-20 21:37:19 +00:00
|
|
|
--- a/src/linux/net.c
|
|
|
|
+++ b/src/linux/net.c
|
2010-05-27 21:43:30 +00:00
|
|
|
@@ -171,11 +171,13 @@ static bool is_at_least_linuxkernel_2_6_
|
|
|
|
*/
|
|
|
|
void
|
|
|
|
net_os_set_global_ifoptions(void) {
|
2009-04-20 21:37:19 +00:00
|
|
|
+#if 0
|
2010-05-27 21:43:30 +00:00
|
|
|
if (writeToProc(olsr_cnf->ip_version == AF_INET ? PROC_IPFORWARD_V4 : PROC_IPFORWARD_V6, &orig_fwd_state, '1')) {
|
|
|
|
OLSR_PRINTF(1, "Warning, could not enable IP forwarding!\n"
|
|
|
|
"you should manually ensure that IP forwarding is enabled!\n\n");
|
|
|
|
olsr_startup_sleep(3);
|
2009-04-20 21:37:19 +00:00
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
2010-05-27 21:43:30 +00:00
|
|
|
if (olsr_cnf->smart_gw_active) {
|
|
|
|
char procfile[FILENAME_MAX];
|
|
|
|
@@ -266,10 +268,12 @@ net_os_restore_ifoptions(void)
|
|
|
|
|
2009-04-20 21:37:19 +00:00
|
|
|
OLSR_PRINTF(1, "Restoring network state\n");
|
|
|
|
|
|
|
|
+#if 0
|
2010-05-27 21:43:30 +00:00
|
|
|
/* Restore IP forwarding to "off" */
|
|
|
|
if (writeToProc(olsr_cnf->ip_version == AF_INET ? PROC_IPFORWARD_V4 : PROC_IPFORWARD_V6, NULL, orig_fwd_state)) {
|
|
|
|
OLSR_PRINTF(1, "Error, could not restore ip_forward settings\n");
|
2009-04-20 21:37:19 +00:00
|
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
2010-05-27 21:43:30 +00:00
|
|
|
if (olsr_cnf->smart_gw_active) {
|
|
|
|
/* Generate the procfile name */
|