summaryrefslogtreecommitdiffstats
path: root/doc/examples
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2014-09-16 02:31:08 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2014-09-16 02:31:08 +0200
commit86f2b8b72dd571ff05332a48b70f595dae3b5ebd (patch)
treef6d078282fca38318a4e442166b25e734ad131ff /doc/examples
parentf8d45bbe9eacbcfcea91f0d34fe972b37db36da4 (diff)
downloadfastd-86f2b8b72dd571ff05332a48b70f595dae3b5ebd.tar
fastd-86f2b8b72dd571ff05332a48b70f595dae3b5ebd.zip
Add status socket option to OpenWrt example files
Diffstat (limited to 'doc/examples')
-rw-r--r--doc/examples/openwrt/fastd.config3
-rw-r--r--doc/examples/openwrt/fastd.init3
2 files changed, 5 insertions, 1 deletions
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