From 86f2b8b72dd571ff05332a48b70f595dae3b5ebd Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 16 Sep 2014 02:31:08 +0200 Subject: Add status socket option to OpenWrt example files --- doc/examples/openwrt/fastd.config | 3 +++ doc/examples/openwrt/fastd.init | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/examples') diff --git a/doc/examples/openwrt/fastd.config b/doc/examples/openwrt/fastd.config index b47cc65..69e3b21 100644 --- a/doc/examples/openwrt/fastd.config +++ b/doc/examples/openwrt/fastd.config @@ -58,6 +58,9 @@ config fastd sample_config # Set a packet mark to filter for with iptables or ip rules # option packet_mark 42 + # Socket to get fastd's status +# option status_socket '/var/run/fastd-example.sock' + # Limits the maximum number of connections, optional # option peer_limit 5 diff --git a/doc/examples/openwrt/fastd.init b/doc/examples/openwrt/fastd.init index 41e5c15..f7a939c 100644 --- a/doc/examples/openwrt/fastd.init +++ b/doc/examples/openwrt/fastd.init @@ -72,6 +72,7 @@ config_string_mtu='mtu $(guard_value "$value");' config_string_peer_limit='peer limit $(guard_value "$value");' config_string_user='user $(escape_string "$value");' config_string_group='group $(escape_string "$value");' +config_string_status_socket='status socket $(escape_string "$value");' config_string_pmtu='pmtu $(yes_no "$value");' config_string_forward='forward $(yes_no "$value");' config_string_hide_ip_addresses='hide ip addresses $(yes_no "$value");' @@ -233,7 +234,7 @@ generate_config() { append_options "$s" config \ config config_peer config_peer_dir bind method syslog_level mode interface mtu peer_limit \ - user group pmtu forward hide_ip_addresses hide_mac_addresses secure_handshakes packet_mark + user group status_socket pmtu forward hide_ip_addresses hide_mac_addresses secure_handshakes packet_mark config_get mode "$s" mode -- cgit v1.2.3