mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
shell_commands/ifconfig: mark TENTATIVE addresses correctly
This commit is contained in:
parent
7815ac26a9
commit
e4a922260e
@ -362,16 +362,22 @@ static void _netif_list_ipv6(ipv6_addr_t *addr, uint8_t flags)
|
||||
if (flags & GNRC_NETIF_IPV6_ADDRS_FLAGS_ANYCAST) {
|
||||
printf(" [anycast]");
|
||||
}
|
||||
switch (flags & GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_MASK) {
|
||||
case GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_TENTATIVE:
|
||||
printf(" TNT");
|
||||
break;
|
||||
case GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_DEPRECATED:
|
||||
printf(" DPR");
|
||||
break;
|
||||
case GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_VALID:
|
||||
printf(" VAL");
|
||||
break;
|
||||
if (flags & GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_TENTATIVE) {
|
||||
printf(" TNT[%u]",
|
||||
flags & GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_TENTATIVE);
|
||||
}
|
||||
else {
|
||||
switch (flags & GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_MASK) {
|
||||
case GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_DEPRECATED:
|
||||
printf(" DPR");
|
||||
break;
|
||||
case GNRC_NETIF_IPV6_ADDRS_FLAGS_STATE_VALID:
|
||||
printf(" VAL");
|
||||
break;
|
||||
default:
|
||||
printf(" UNK");
|
||||
break;
|
||||
}
|
||||
}
|
||||
line_thresh = _newline(0U, line_thresh);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user