3 @@ -107,6 +107,7 @@ bind_socket_to_device(int sock, char *de
5 enable_ip_forwarding(int version)
9 const char *const procfile = version == AF_INET ? "/proc/sys/net/ipv4/ip_forward" : "/proc/sys/net/ipv6/conf/all/forwarding";
11 @@ -142,6 +143,7 @@ enable_ip_forwarding(int version)
19 @@ -268,6 +270,7 @@ restore_settings(int version)
20 OLSR_PRINTF(1, "Restoring network state\n");
22 /* Restore IP forwarding to "off" */
24 if (orig_fwd_state == '0') {
25 const char *const procfile = version == AF_INET ? "/proc/sys/net/ipv4/ip_forward" : "/proc/sys/net/ipv6/conf/all/forwarding";
27 @@ -280,6 +283,7 @@ restore_settings(int version)
33 /* Restore global ICMP redirect setting */
34 if (orig_global_redirect_state != '0') {