summary refs log tree commit diff
path: root/pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch')
-rw-r--r--pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch b/pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch
new file mode 100644
index 00000000000..fa12abe9b77
--- /dev/null
+++ b/pkgs/tools/networking/vpnc/no_default_route_when_netmask.patch
@@ -0,0 +1,12 @@
+diff -uNr a/vpnc-script b/vpnc-script
+--- a/vpnc-script	2015-09-06 13:19:11.408661526 +0200
++++ b/vpnc-script	2015-09-06 14:47:40.260871556 +0200
+@@ -647,7 +647,7 @@
+ 			echo "$i" | grep : >/dev/null || \
+ 				set_network_route "$i" "255.255.255.255" "32"
+ 		done
+-	elif [ -n "$INTERNAL_IP4_ADDRESS" ]; then
++	elif [ -n "$INTERNAL_IP4_ADDRESS" -a -z "$INTERNAL_IP4_NETMASK" ]; then
+ 		set_default_route
+ 	fi
+ 	if [ -n "$CISCO_IPV6_SPLIT_INC" ]; then