Skip to content

Commit 185269d

Browse files
jukkarnashif
authored andcommitted
net: shell: ipv6: Print information about SLAAC addresses
Print information in "net ipv6" command how the SLAAC addresses are generated. There is the default legacy EUI-64 method (RFC 4862) or the stable method described in RFC 7217. Signed-off-by: Jukka Rissanen <[email protected]>
1 parent 3a5c6c5 commit 185269d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

subsys/net/lib/shell/ipv6.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ static int cmd_net_ipv6(const struct shell *sh, size_t argc, char *argv[])
188188

189189
PR("Privacy extension support : %s\n",
190190
IS_ENABLED(CONFIG_NET_IPV6_PE) ? "enabled" : "disabled");
191+
PR("SLAAC IID generation method : %s\n",
192+
IS_ENABLED(CONFIG_NET_IPV6_IID_STABLE) ?
193+
"stable (RFC 7217)" : "EUI-64 (RFC 4862)");
191194

192195
#if defined(CONFIG_NET_IPV6_PE)
193196
PR("Max number of IPv6 privacy extension filters "

0 commit comments

Comments
 (0)