.. index:: pair: group; Check Rx mode combinations .. _doxid-group__basic-rx__mode: Check Rx mode combinations ========================== .. toctree:: :hidden: Check that Rx mode is appropriately handled by the driver and packets are received or not depending on configured Rx mode and destination MAC address. #. Enable or disable promiscuous mode on the IUT interface according to **promisc** parameter. #. Enable or disable all-multicast mode on the IUT interface according to **allmulti** parameter. #. Create UDP socket on IUT, bind it to **iut_addr**. #. Create a CSAP on IUT to capture UDP packets sent to **iut_addr**. #. Create a CSAP on Tester to send packets to **iut_addr**. #. 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. #. Send a packet to the broadcast MAC address from the Tester CSAP. Check that IUT socket receives data and IUT CSAP captures the packet. #. 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``. #. Send a packet to **mcast_addr** MAC address from the Tester CSAP. Check that IUT socket receives data if either promiscuous or all-multicast mode is enabled. Check that IUT CSAP captures the packet when **promisc** and/or **allmulti** is ``true``. #. Add **mcast_addr** to the **iut_if**. #. Send a packet to the just added **mcast_addr** MAC address from the Tester CSAP. Check that IUT socket receives data. Check that IUT CSAP captures the packet. Andrew Rybchenko `andrew.rybchenko@oktetlabs.ru `__ .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - env - Testing environment: * :ref:`env.peer2peer ` * :ref:`env.peer2peer_ipv6 ` * - promisc - If ``true``, enable promiscuous mode on the IUT interface, otherwise disable it. * - allmulti - If ``true``, enable all-multicast mode on the IUT interface, otherwise disable it.