accept02: Join the multicast group on lo

The test joins the multicast group with interface 0. Then the kernel
needs a route to 224.0.0.0 to find a device. When we only have lo,
like in a QEMU guest with no network, there is no such route and the
test breaks:

  accept02.c:52: TBROK: setsockopt(3, 0, 42, ...) failed: ENODEV (19)

All traffic in the test goes over 127.0.0.1, so join the group on lo.

Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Petr Vorel <[email protected]>
Reviewed-by: Martin Doucha <[email protected]>
Tested-by: Martin Doucha <[email protected]>
Signed-off-by: Anders Roxell <[email protected]>
1 file changed