The IP_MULTICAST_IF Socket Option
The kernel normally uses the default network device to send multicast data packets. A programmer can overwrite this behavior and define a specific output network device. The network device is identified by its IP address (if_addr):