• 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
Internet Sharing and System Configuration
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Internet Sharing and System Configuration


  • Subject: Internet Sharing and System Configuration
  • From: Ryan McGann <email@hidden>
  • Date: Thu, 24 Oct 2002 22:43:51 -0700

This is a repost. I didn't get any responses to an earlier message...

I'm trying to use the System Configuration framework to be notified when Internet Sharing (System Preferences-> Sharing -> Internet ) is turned on/off. I've installed handlers to be notified when the IPv4 address changes for any interface, but it's never called even though Internet Sharing can assign an IPv4 address to an interface. I know I'm installing the callback works though because it's called in other instances, so is it a bug that turning on Internet Sharing doesn't produce these callbacks? My callbacks are installed on the global kSCEntNetIPv4 entity and on the regex pattern kSCCompAnyRegex/kSCEntNetIPv4 service entity.

Is there a better/different way to be notified when Internet Sharing is enabled/disabled in Jaguar? Since turning on Internet Sharing starts up the NAT daemon, I could poll the process list for that process, but that's an icky hack, polling is a bad thing, etc.

Thanks,
Ryan

email@hidden
_______________________________________________
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.

  • Prev by Date: netstat segmentation fault
  • Next by Date: PPTP issue...
  • Previous by thread: Re: netstat segmentation fault
  • Next by thread: PPTP issue...
  • Index(es):
    • Date
    • Thread