net: shell: Add ACD events to the event monitor

Include new ACD events in the shell event monitor.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2024-06-04 10:44:23 +02:00 committed by Carles Cufí
parent 0a95423421
commit a89dd1a6f6
1 changed files with 12 additions and 0 deletions

View File

@ -256,6 +256,18 @@ static char *get_l3_desc(struct event_msg *msg,
*desc = "DHCPv4";
*desc2 = "stop";
break;
case NET_EVENT_IPV4_ACD_SUCCEED:
*desc = "IPv4 ACD";
*desc2 = "ok";
info = net_addr_ntop(AF_INET, msg->data, extra_info,
extra_info_len);
break;
case NET_EVENT_IPV4_ACD_FAILED:
*desc = "IPv4 ACD";
*desc2 = "fail";
info = net_addr_ntop(AF_INET, msg->data, extra_info,
extra_info_len);
break;
}
return info;