changeset 473:7a9c32f8fc56

Define proto=inet for dhclient event and MPD events, so we will know inteface is up or IP layer went UP.
author Aleksandr Rybalko <ray@ddteam.net>
date Mon, 24 Sep 2012 14:27:11 +0300
parents cf66b8733a66
children af4a757a826b
files profiles/lua_web_ui/files/etc/dhclient-script profiles/lua_web_ui/files/etc/racoon/phase1-down.sh profiles/lua_web_ui/files/etc/racoon/phase1-up.sh
diffstat 3 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/profiles/lua_web_ui/files/etc/dhclient-script	Mon Sep 24 14:24:52 2012 +0300
+++ b/profiles/lua_web_ui/files/etc/dhclient-script	Mon Sep 24 14:27:11 2012 +0300
@@ -45,6 +45,7 @@
         query="${query}&iface=${interface}"
         query="${query}&gw=${new_routers}"
         query="${query}&ip=${new_ip_address}"
+        query="${query}&proto=inet"
         query="${query}&netmask=${new_subnet_mask}"
         query="${query}&dhclient_reason=${reason}"
         query="${query}&dhclient_lease_time=${new_dhcp_lease_time}"
--- a/profiles/lua_web_ui/files/etc/racoon/phase1-down.sh	Mon Sep 24 14:24:52 2012 +0300
+++ b/profiles/lua_web_ui/files/etc/racoon/phase1-down.sh	Mon Sep 24 14:27:11 2012 +0300
@@ -14,6 +14,7 @@
 
 query="cmd=event"
 query="${query}&state=down"
+query="${query}&proto=inet"
 query="${query}&iface=IPSec0"	# XXX: should use names for IPSec peers
 query="${query}&gw=${REMOTE_ADDR}:${REMOTE_PORT}"
 query="${query}&ip=${LOCAL_ADDR}:${LOCAL_PORT}"
--- a/profiles/lua_web_ui/files/etc/racoon/phase1-up.sh	Mon Sep 24 14:24:52 2012 +0300
+++ b/profiles/lua_web_ui/files/etc/racoon/phase1-up.sh	Mon Sep 24 14:27:11 2012 +0300
@@ -14,6 +14,7 @@
 
 query="cmd=event"
 query="${query}&state=up"
+query="${query}&proto=inet"
 query="${query}&iface=IPSec0"	# XXX: should use names for IPSec peers
 query="${query}&gw=${REMOTE_ADDR}:${REMOTE_PORT}"
 query="${query}&ip=${LOCAL_ADDR}:${LOCAL_PORT}"