Promiscuous mode test
Check correct work of promiscuous mode
Checking the correct work of promiscuous mode by sending two packets with different MAC addresses: one of which is the MAC address of the iut_port, the other is not
Initialize EAL, preparing of ethdev_state Ethernet device state
If the is_promiscuous_mode is
TRUE
then enable promiscuous mode, otherwise disable itStart the Ethernet device
Check that a new mode was saved after start of device
Ensure that interface is UP on Tester side
Transmit and sniff two packets from tst_if: the first to the iut_port MAC address and the second to the iut_alien_mac
Receive packets on iut_port Check that the first received packet matches the first sent and the second was dropped if is_promiscuous_mode is
FALSE
Parameters:
ethdev_state |
The state of Ethernet device |
is_promiscuous_mode |
Enable promiscuous mode if |