Re: About source IP address of IGMP Join sent on loopbackinterface
"Prashant Jhingran (pjhingra)" <[email protected]> Mon, 22 Mar 2010 14:33:37 +0530
| Newsgroups | gmane.ietf.magma |
|---|---|
| Message-ID | <[email protected]> |
Hi, What you are seeing is expected, that's because 127/8 is reserved for loopback address which cannot be used as source IP address while communicating with outside world. Regards, Prashant Jhingran ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of preetham B Sent: Monday, March 22, 2010 1:36 PM To: [email protected] Subject: [magma] About source IP address of IGMP Join sent on loopbackinterface Hi, I am running a host application which joins multicast group on loopback interface. But the source IP address of IGMPv3 report is not loopback address (127.0.0.1). Its picking up first available N/W interface address. Snippet: mreq.imr_multiaddr.s_addr = inet_addr("239.5.1.7"); mreq.imr_address.s_addr = htonl(INADDR_LOOPBACK); mreq.imr_ifindex = 1; (Interface index of loopback) check(setsockopt(s, IPPROTO_IP, IP_ADD_MEMBERSHIP, &mreq, sizeof(mreq)) == 0); Is there any reason why loopback address is not source IP address of join message? Regards, Anupama _______________________________________________ magma mailing list [email protected] https://www.ietf.org/mailman/listinfo/magma