Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Internet Sharing and System Configuration



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.