diff --git a/sys/netinet6/in6_mcast.c b/sys/netinet6/in6_mcast.c --- a/sys/netinet6/in6_mcast.c +++ b/sys/netinet6/in6_mcast.c @@ -2854,6 +2854,7 @@ static const char *in6m_statestrs[] = { "not-member", "silent", + "reporting", "idle", "lazy", "sleeping", @@ -2862,6 +2863,8 @@ "sg-query-pending", "leaving" }; +_Static_assert(nitems(in6m_statestrs) == + MLD_LEAVING_MEMBER - MLD_NOT_MEMBER + 1, "Missing MLD group state"); static const char * in6m_state_str(const int state)