Changing MAC address and receiving

Check that MAC address can be changed and after that packets sent to the new address can be received.

  1. Enable or disable promiscuous mode on the IUT interface according to promisc parameter.

  2. Create UDP socket on IUT, bind it to iut_addr.

  3. Create a CSAP on IUT to capture UDP packets sent to iut_addr.

  4. Create a CSAP on Tester to send packets to iut_addr.

  5. Send a packet to iut_lladdr MAC address (currently set on the IUT interface) from the Tester CSAP. Check that IUT socket receives data and IUT CSAP captures the packet.

  6. Send a packet to iut_alien_mac MAC address from the Tester CSAP. Check that IUT socket does not receive data. Check that IUT CSAP captures the packet only when promisc is TRUE.

  7. Change MAC address to iut_alien_mac on the IUT interface. Check that the new address is reported for the interface after that.

  8. Send a packet to iut_lladdr MAC address from the Tester CSAP. Check that IUT socket does not receive data. Check that IUT CSAP captures the packet only when promisc is TRUE.

  9. Send a packet to iut_alien_mac MAC address (currently set on the IUT interface) from the Tester CSAP. Check that IUT socket receives data and IUT CSAP captures the packet.

Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru

Parameters:

env

Testing environment:

promisc

If TRUE, enable promiscuous mode on the IUT interface, otherwise disable it.