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.
This commit is contained in:
Tore Anderson 2016-04-10 20:34:16 +02:00
parent ef2f816bf7
commit 777797f8d9
No known key found for this signature in database
GPG Key ID: ADA2063420ACABB1
2 changed files with 4 additions and 0 deletions

View 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

View 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