• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NAT-PMP Broadcast Address?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NAT-PMP Broadcast Address? (From: email@hidden)
 >Re: NAT-PMP Broadcast Address? (From: Matt Slot <email@hidden>)

  • Prev by Date: Re: Getting SIGHUP in a DO process launched by NSTask
  • Next by Date: Re: NAT-PMP Broadcast Address?
  • Previous by thread: Re: NAT-PMP Broadcast Address?
  • Next by thread: Re: NAT-PMP Broadcast Address?
  • Index(es):
    • Date
    • Thread