diff options
author | Ondřej Caletka <ondrej@caletka.cz> | 2022-06-04 23:42:59 +0200 |
---|---|---|
committer | Christian Marangi <ansuelsmth@gmail.com> | 2023-06-23 14:09:59 +0200 |
commit | c6bff6f1c0fbb37a21a7f54e393615bad22a72d9 (patch) | |
tree | c6228ad688e168e0d52abde6e365fcacc933ffa8 /src/dhcpv6-ia.c | |
parent | 40ab806bf4c8698ac925d094ce11ce1d57ae2e46 (diff) |
router: Add PREF64 (RFC 8781) support
This option of IPv6 Router Advertisements allows devices connected to
a IPv6-only network to discover IPv6 prefix of the NAT64 gateway.
Devices can use this information for instance to setup client translator
(CLAT) from IPv4 to IPv6 in 464XLAT (RFC 6877) scenario or to handle
IPv4 address literal on application level.
To enable PREF64 option, a new uci parameter ra_pref64 has to contain
the NAT64 prefix, including prefix length. Only lengths of 96, 64, 56,
48, 40 and 32 bits are supported. For example, to annonce the Well-Known
Prefix:
config dhcp 'lan'
…
option ra_pref64 '64:ff9b::/96'
Fixes: #182
Signed-off-by: Ondřej Caletka <ondrej@caletka.cz>
[ remove extra space for Fixes tag ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Diffstat (limited to 'src/dhcpv6-ia.c')
0 files changed, 0 insertions, 0 deletions