From 777797f8d9084ff5e33edee55a41925b047f6950 Mon Sep 17 00:00:00 2001 From: Tore Anderson Date: Sun, 10 Apr 2016 20:34:16 +0200 Subject: [PATCH] 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. --- hnetd/files/hnet.config | 1 + hnetd/files/hnetd.init | 3 +++ 2 files changed, 4 insertions(+) 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