hnetd: support the ip4mode parameter
authorTore Anderson <tore@fud.no>
Sun, 10 Apr 2016 18:34:16 +0000 (20:34 +0200)
committerTore Anderson <tore@fud.no>
Sun, 10 Apr 2016 18:34:16 +0000 (20:34 +0200)
Add support for setting the "ip4mode" parameter (sbyx/hnetd@2953f5a) in
the "config pa pa" stanza of /etc/config/hnet.

hnetd/files/hnet.config
hnetd/files/hnetd.init

index aba765f734529da7d03f9828195134377fbbcf2e..0a8e770248ae415fff6aa65ce3ecfbc34debe2c6 100644 (file)
@@ -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
index 3ca2c2e063cfe7a10f011cb2b33f2096550b33c8..94cd6b8ff1756ffdf6557473359a49c786909b1f 100644 (file)
@@ -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