3 @@ -106,6 +106,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 @@ -141,6 +142,7 @@ enable_ip_forwarding(int version)
19 @@ -267,6 +269,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 @@ -279,6 +282,7 @@ restore_settings(int version)
33 /* Restore global ICMP redirect setting */
34 if (orig_global_redirect_state != '0') {