Skip to content

Commit

Permalink
net: shell: Add IPv4 and IPv6 connectivity events
Browse files Browse the repository at this point in the history
Add descriptions for recently introduced IPv4 and IPv6
connectivity events to the net event monitor.

Signed-off-by: Georges Oates_Larsen <[email protected]>
  • Loading branch information
glarsennordic committed Jun 7, 2024
1 parent 548590b commit ae44b2e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions subsys/net/lib/shell/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,18 @@ static const char *get_l4_desc(uint32_t event)
case NET_EVENT_L4_DISCONNECTED:
desc = "disconnected";
break;
case NET_EVENT_L4_IPV4_CONNECTED:
desc = "IPv4 connectivity available";
break;
case NET_EVENT_L4_IPV4_DISCONNECTED:
desc = "IPv4 connectivity lost";
break;
case NET_EVENT_L4_IPV6_CONNECTED:
desc = "IPv4 connectivity available";
break;
case NET_EVENT_L4_IPV6_DISCONNECTED:
desc = "IPv4 connectivity lost";
break;
case NET_EVENT_DNS_SERVER_ADD:
desc = "DNS server add";
break;
Expand Down

0 comments on commit ae44b2e

Please sign in to comment.