diff options
| author | Tore Anderson | 2016-04-10 18:34:16 +0000 |
|---|---|---|
| committer | Tore Anderson | 2016-04-10 18:34:16 +0000 |
| commit | 777797f8d9084ff5e33edee55a41925b047f6950 (patch) | |
| tree | 4e07871504aabb16558c50b48c61f14ae66d73b6 | |
| parent | ef2f816bf709bf51f376d3677eb450a1282b3ffd (diff) | |
| download | routing-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.config | 1 | ||||
| -rw-r--r-- | hnetd/files/hnetd.init | 3 |
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 |