We are using the following code (only a snippet) for setting up several multicast sockets (OS: Redhat Linux):
sockfd[i] = socket (PF_INET, SOCK_DGRAM, IPPROTO_IP); if