Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Don't reboot...' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Don't reboot...
Authored by: jesboat on Jan 23, '05 08:49:29PM

It's called high-level vs low-level. ifconfig is a low-level tool - pretty much all it does it tell you the current state of a network device or change the state of the device. It doesn't send out notifications, update configd, or do anything else, because it doesn't need to.

configd is a program that is higher-level. It interacts with many parts of the operating system, but, when it's time to change the actual IP address of the card, configd and friends just call ifconfig to do the dirtywork.

Apple wrote configd and such in order to create an easier way to use ifconfig (and its friends, arp, route, etc.) than opening up a Terminal window and running ifconfig directly, not to re-invent what ifconfig does.

---
--
With no walls or fences on the 'net, who needs Windows or Gates?



[ Reply to This | # ]
Don't reboot...
Authored by: lolopb on Jan 24, '05 01:24:29AM

Reading this :

<http://developer.apple.com/documentation/Networking/Conceptual/SystemConfigFrameworks/index.html?http://developer.apple.com/documentation/Networking/Conceptual/SystemConfigFrameworks/SC_Intro/chapter_1_section_1.html#//apple_ref/doc/uid/TP40001065-CH201>

I'm not that sure that ip agents used by Apple is ifconfig, it's not pretty clear at all.

I agree that configd is higher-level thant ifconfig but, again according to that document, the work done whenever you click on the "Apply" button in your Network Preference Pane (or whenever you switch from a net config to another) is a little bit more complex than just launching ifconfig.

Again, do what you want, I don't mind, but don't be surprised if what you set from ifconfig is changed by configd, which can happen, sometimes...



[ Reply to This | # ]