linux-cp: fix multicast route updates on address add/del 95/43495/4
authorDenys Haryachyy <[email protected]>
Tue, 29 Jul 2025 14:39:29 +0000 (17:39 +0300)
committerMatthew Smith <[email protected]>
Wed, 30 Jul 2025 01:42:38 +0000 (01:42 +0000)
commit344dab5a22e1d8020aae6fb331d3e7cfeb6b7a7a
tree27ac3f22df058718eb7f8d734ce76fe5c638faf5
parent28707cb5a1b43de81169bfb41bb48e2d09ecf84f
linux-cp: fix multicast route updates on address add/del

Ensure multicast routes are only added when the first IPv4 address is configured on an interface,
and only removed when the last address is deleted.

This prevents premature removal or redundant addition of multicast routes during address changes.

Type: fix

Change-Id: Id191cd88abfc2c4c354fceec4aaabc030ed938cc
Signed-off-by: Denys Haryachyy <[email protected]>
src/plugins/linux-cp/lcp_router.c