disabling mulicast loopback + getting IP
disabling mulicast loopback + getting IP
- Subject: disabling mulicast loopback + getting IP
- From: Eric Singer <email@hidden>
- Date: Mon, 23 Sep 2002 17:35:30 -0400
Hi,
Two questions:
1)
I'm trying to disable multicast loopback:
u_char loopback = false;
err = setsockopt(mSocketID, IPPROTO_IP, IP_MULTICAST_LOOP, &loopback,
sizeof(loopback));
However, it is not working - I'm still receiving my own broadcasts.
2)
I'm trying to determine the local IP address(es) using the sample
code in TN1145 (Living in a Dynamic TCP/IP Environment), Listing 6.
Getting the local IP address list using System Configuration
framework. It doesn't compile for me, though, failing with numerous
errors. Is there an errata or better sample code available for doing
this? (I'm pre-10.2, BTW, so the getifaddrs BSD call is unavailable,
and the get_ifi_info code from Unix Network Programming is a little
hairier than I'm looking for.)
Also, shouldn't OTInetGetInterfaceInfo() work in OSX? It is
returning a zero address for me.
Thanks,
Eric
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.