Sending and receiving multicast packetsΒΆ

Check that multicast packets may be sent and received over the tested interface.

Scenarios: X3-SYS05.

  1. If tx is TRUE, IUT is sender and Tester is receiver, otherwise - the other way around.

  2. Create UDP socket on sender, bind it to a unicast address.

  3. Create UDP socket on receiver, bind it to the multicast address mcast_addr.

  4. With help of IP_MULTICAST_IF or IPV6_MULTICAST_IF set an outgoing interface for multicast packets for the sender socket.

  5. Join the receiver socket to the multicast group of mcast_addr.

  6. For sends_num times, send a packet from the sender socket to mcast_addr, receive and check it on the receiver.

Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru

Parameters:

env

Testing environment:

tx

If TRUE, send from IUT to Tester, else - the other way around.

sends_num

How many packets to send:

  • 100