@@ -1409,6 +1409,14 @@ async fn test_ipv4_multicast_invalid_destination_mac() -> TestResult {
14091409 . await
14101410 . unwrap ( ) ;
14111411
1412+ let port_label_ingress = switch. port_label ( ingress) . unwrap ( ) ;
1413+
1414+ // Check the Multicast_Drop counter baseline for the ingress port
1415+ let drop_mcast_baseline = switch
1416+ . get_counter ( & port_label_ingress, Some ( "multicast_drop" ) )
1417+ . await
1418+ . unwrap ( ) ;
1419+
14121420 let result = switch. packet_test ( vec ! [ test_pkt] , expected_pkts) ;
14131421
14141422 check_counter_incremented (
@@ -1421,6 +1429,17 @@ async fn test_ipv4_multicast_invalid_destination_mac() -> TestResult {
14211429 . await
14221430 . unwrap ( ) ;
14231431
1432+ // Verify that the Filter_Drop_Multicast counter also incremented
1433+ check_counter_incremented (
1434+ switch,
1435+ & port_label_ingress,
1436+ drop_mcast_baseline,
1437+ 1 ,
1438+ Some ( "multicast_drop" ) ,
1439+ )
1440+ . await
1441+ . unwrap ( ) ;
1442+
14241443 // Cleanup: Remove both external IPv4 group and underlay IPv6 group
14251444 cleanup_test_group ( switch, created_group. group_ip ) . await ;
14261445 cleanup_test_group ( switch, internal_multicast_ip) . await ;
@@ -1486,6 +1505,14 @@ async fn test_ipv6_multicast_invalid_destination_mac() -> TestResult {
14861505 . await
14871506 . unwrap ( ) ;
14881507
1508+ let port_label_ingress = switch. port_label ( ingress) . unwrap ( ) ;
1509+
1510+ // Check the Multicast_Drop counter baseline for the ingress port
1511+ let drop_mcast_baseline = switch
1512+ . get_counter ( & port_label_ingress, Some ( "multicast_drop" ) )
1513+ . await
1514+ . unwrap ( ) ;
1515+
14891516 let result = switch. packet_test ( vec ! [ test_pkt] , expected_pkts) ;
14901517
14911518 check_counter_incremented (
@@ -1498,6 +1525,17 @@ async fn test_ipv6_multicast_invalid_destination_mac() -> TestResult {
14981525 . await
14991526 . unwrap ( ) ;
15001527
1528+ // Verify that the Multicast_Drop counter also incremented
1529+ check_counter_incremented (
1530+ switch,
1531+ & port_label_ingress,
1532+ drop_mcast_baseline,
1533+ 1 ,
1534+ Some ( "multicast_drop" ) ,
1535+ )
1536+ . await
1537+ . unwrap ( ) ;
1538+
15011539 cleanup_test_group ( switch, created_group. group_ip ) . await ;
15021540
15031541 result
0 commit comments