Re: NAT-PMP Broadcast Address?
Re: NAT-PMP Broadcast Address?
- Subject: Re: NAT-PMP Broadcast Address?
- From: Quinn <email@hidden>
- Date: Tue, 11 Sep 2007 11:16:00 +0100
At 14:35 -0400 10/9/07, Matt Slot wrote:
Here's the code I use to discover the address of my upstream router using BSD.
Alternatively you could do this the same way that mDNSResponder does it:
1. Use SCDynamicStoreCopyValue to get "State:/Network/Global/IPv4".
2. Extract the default router's IP using the "Router" key.
You can also use SCF notifications to learn about changes.
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden