CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2026/11/06 13:37:32

Modified files:
        sys/netinet    : ip_mroute.c 

Log message:
Retire mrt_count which is only used to prevent MRT_API_CONFIG once
multicast is already going.

MRT_API_CONFIG must be called right after MRT_INIT and it should only work
then. The moment a VIF or MFC is added MRT_API_CONFIG needs to fail.
Implement this with a mrt_api_locked variable that is toggled in the
setsockopt calls. This way MRT_API_CONFIG can be simplified and the
somewhat problematic mrt_count can be removed.

It seems nothing really uses MRT_API_CONFIG so we can be super strict
here and only allow it on the first call after MRT_INIT and so
mrt_api_locked is toggled even if the setsockopt command failed.

OK bluhm@

Reply via email to