Mailing Lists: Apple Mailing Lists

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

Re: ipconfig waitall > /dev/null 2>&1



> "Justin C. Walker" <email@hidden> wrote:

>
> On Thursday, March 28, 2002, at 09:06 AM, "Peter \"Pierro' W Brewer"
> <email@hidden> wrote:
>
>>> "Justin C. Walker" <email@hidden> wrote:
>>> If your interface is set to be configured manually, then I'm not sure
>>> what is causing the delay.
>>>
>>
>> Justin,
>>
>> You may be unintentionally excluding something. Easy to understand why.
>>
>> I think netinfo and lookupd start before ipconfig is run. Things like
>> the
>> matching ip addresses to hostnames, networks etc. would be also be done.
>
> What matching are you referring to? The low-level configuration works
> with IP addresses only. Host names are not an issue.
>
>> I am not entirely certain by I suspect that is why it takes so long.
>
> Can you give me a hint why you think this would be true?

ipconfig waitall > /dev/null 2>&1
ifconfig lo0 127.0.0.1 netmask 255.0.0.0 up


This comes after ipconfig waitall... making me wonder...

##
# See if the network is up now
##
CheckForNetwork

# Set HOSTNAME if needed
if [ "${HOSTNAME:=-AUTOMATIC-}" = "-AUTOMATIC-" ]; then
HOSTNAME=$(ipconfig getoption "" host_name)
if [ $? -eq 0 ]; then
hostname "${HOSTNAME}"
fi
fi

I suspect that ipconfig would have to get host_name from netinfo.

Its seems clear that netstat -r relies on lookupd...

Which would tend to support the notion that ifconfig might as well.
(through syscall splicing).

The only time I am fairly positive this could never happen is in single user
mode.

Thx,

-- P.
_______________________________________________
darwinos-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwinos-users
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.