summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTore Anderson2016-04-10 18:34:16 +0000
committerTore Anderson2016-04-10 18:34:16 +0000
commit777797f8d9084ff5e33edee55a41925b047f6950 (patch)
tree4e07871504aabb16558c50b48c61f14ae66d73b6
parentef2f816bf709bf51f376d3677eb450a1282b3ffd (diff)
downloadrouting-777797f8d9084ff5e33edee55a41925b047f6950.tar.gz
hnetd: support the ip4mode parameter
Add support for setting the "ip4mode" parameter (sbyx/hnetd@2953f5a) in the "config pa pa" stanza of /etc/config/hnet.
-rw-r--r--hnetd/files/hnet.config1
-rw-r--r--hnetd/files/hnetd.init3
2 files changed, 4 insertions, 0 deletions
diff --git a/hnetd/files/hnet.config b/hnetd/files/hnet.config
index aba765f..0a8e770 100644
--- a/hnetd/files/hnet.config
+++ b/hnetd/files/hnet.config
@@ -11,6 +11,7 @@ config security security
config pa pa
# option ip4prefix 10.0.0.0/8
+# option ip4mode ifuplink
# option ulaprefix fd12:3456:789A::/48
# option ulamode off
# option persistent_store /etc/hnet-pa.store
diff --git a/hnetd/files/hnetd.init b/hnetd/files/hnetd.init
index 3ca2c2e..94cd6b8 100644
--- a/hnetd/files/hnetd.init
+++ b/hnetd/files/hnetd.init
@@ -83,6 +83,9 @@ start_service() {
config_get val pa ip4prefix
[ -n "$val" ] && procd_append_param command --ip4prefix $val
+ config_get val pa ip4mode
+ [ -n "$val" ] && procd_append_param command --ip4mode $val
+
config_get val pa ulaprefix
[ -n "$val" ] && procd_append_param command --ulaprefix $val