I have an application is doing a recvrom that needs to know what multicast sent the message (by default you get the senders normal IP in the from_addr) Looking at Stevens, I saw the IP_RECVDSADDR, but this isn't supported on Linux. Looking at the archive for this list, I see that I should be able to use the IP_PKTINFO socket option to get what I want. Does anyone have an example of how to use this option, so far I have worked out how to turn the option on: int yes = 1; setsockopt(sock, SOL_IP, IP_PKTINFO, &yes, sizeof(yes)); But how do you pick up the in_pktinfo data? I can see from the sources that the data is returned in a struct in_pktinfo, but I don't know how whether I'm supposed to get it returned in the recvfrom or whether it comes from an ioctl? If anyone can help it would be greatly appreciated, Regards, Stuart - To unsubscribe from this list: send the line "unsubscribe linux-net" in the body of a message to [EMAIL PROTECTED]
