X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=net%2Folsrd%2Fpatches%2F100-no_forwarding_override.patch;h=1ef2552f7b38a294a7ca82470f13644e1ec4ee90;hb=1e0f775f22667e04b5f9eab8ab634b3e0d2f59d4;hp=6e225e3759344683fa32cb196828a1a7d7387976;hpb=c1aed19a7bc0c3abe5d469b2b344d8cb3ef86c58;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/net/olsrd/patches/100-no_forwarding_override.patch b/net/olsrd/patches/100-no_forwarding_override.patch index 6e225e3759..1ef2552f7b 100644 --- a/net/olsrd/patches/100-no_forwarding_override.patch +++ b/net/olsrd/patches/100-no_forwarding_override.patch @@ -1,6 +1,6 @@ --- a/src/linux/net.c +++ b/src/linux/net.c -@@ -106,6 +106,7 @@ bind_socket_to_device(int sock, char *de +@@ -107,6 +107,7 @@ bind_socket_to_device(int sock, char *de int enable_ip_forwarding(int version) { @@ -8,7 +8,7 @@ FILE *proc_fwd; const char *const procfile = version == AF_INET ? "/proc/sys/net/ipv4/ip_forward" : "/proc/sys/net/ipv6/conf/all/forwarding"; -@@ -141,6 +142,7 @@ enable_ip_forwarding(int version) +@@ -142,6 +143,7 @@ enable_ip_forwarding(int version) } fclose(proc_fwd); } @@ -16,7 +16,7 @@ return 1; } -@@ -267,6 +269,7 @@ restore_settings(int version) +@@ -268,6 +270,7 @@ restore_settings(int version) OLSR_PRINTF(1, "Restoring network state\n"); /* Restore IP forwarding to "off" */ @@ -24,7 +24,7 @@ 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; -@@ -279,6 +282,7 @@ restore_settings(int version) +@@ -280,6 +283,7 @@ restore_settings(int version) fclose(proc_fd); } }