From aeb252e2a4307a294d8483e4af52b747d7225535 Mon Sep 17 00:00:00 2001 From: Darren 'Tadgy' Austin Date: Mon, 8 Mar 2021 20:30:30 +0000 Subject: Added debugging output around new SLAAC enhancements. --- rc.inet1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rc.inet1 b/rc.inet1 index 9206645..e809df0 100644 --- a/rc.inet1 +++ b/rc.inet1 @@ -329,16 +329,20 @@ if_up() { IF_UP=0 if [ -e /proc/sys/net/ipv6 ] && [ "${USE_DHCP6[$i]}" != "yes" ] && [ "${USE_SLAAC[$i]}" = "yes" ]; then # configure via SLAAC info_log "${1}: enabling SLAAC" + # Set up SLAAC privacy enhancements if configured. if [ "${SLAAC_PRIVIPGEN[$i]}" = "yes" ]; then if [ -n "${SLAAC_SECRET[$i]}" ]; then + debug_log "${1}: seeding secret and enabling private IPv6 generation" echo "${SLAAC_SECRET[$i]}" >/proc/sys/net/ipv6/conf/${1}/stable_secret echo "2" >/proc/sys/net/ipv6/conf/${1}/addr_gen_mode else + debug_log "${1}: using random secret and enabling private IPv6 generation" echo -n >/proc/sys/net/ipv6/conf/${1}/stable_secret echo "3" >/proc/sys/net/ipv6/conf/${1}/addr_gen_mode fi fi if [ "${SLAAC_TEMPADDR[$i]}" = "yes" ]; then + debug_log "${1}: enabling SLAAC tempaddr" echo "2" >/proc/sys/net/ipv6/conf/${1}/use_tempaddr fi # Enable accepting of RA packets, unless explicitly configured not to: -- cgit v1.2.3