diff --git a/README.pod b/README.pod index eb539ec..8d31fe7 100644 --- a/README.pod +++ b/README.pod @@ -275,6 +275,11 @@ The IPv6 translation prefix into which the PLAT maps the IPv4 internet. See I for a closer description. By default, this is auto-detected from DNS64 answers using the method in I. +=item B (no default) + +The IPv6 translation prefix fallback. This is used if no plat-prefix is set +or auto detected. + =item B (default: I) Controls whether or not B should add a Proxy-ND entry for the CLAT IPv6 diff --git a/clatd b/clatd index ba8ef09..22b615d 100755 --- a/clatd +++ b/clatd @@ -47,6 +47,7 @@ $CFG{"forwarding-enable"} = 1; # enable ipv6 forwarding? $CFG{"ip6tables-enable"} = undef; # allow clat<->plat traffic? $CFG{"plat-dev"} = undef; # PLAT-facing device, default detect $CFG{"plat-prefix"} = undef; # detect using DNS64 by default +$CFG{"plat-fallback-prefix"} = undef; # fallback prefix if no prefix is found $CFG{"proxynd-enable"} = 1; # add proxy-nd entry for clat? $CFG{"tayga-conffile"} = undef; # make a temporary one by default $CFG{"tayga-v4-addr"} = "192.0.0.2"; # from RFC 7335 @@ -716,6 +717,7 @@ p("Starting clatd v$VERSION by Tore Anderson "); # Step 1: Fill in any essential blanks in the configuration by auto-detecting # any missing values. $CFG{"plat-prefix"} ||= get_plat_prefix(); +$CFG{"plat-prefix"} ||= $CFG{"plat-fallback-prefix"}; if(!$CFG{"plat-prefix"}) { w("No PLAT prefix was discovered or specified; 464XLAT cannot work."); exit 0;