• 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: TCP/IP settings question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TCP/IP settings question


  • Subject: Re: TCP/IP settings question
  • From: Matt Mashyna <email@hidden>
  • Date: Mon, 10 Nov 2003 16:46:56 -0500

Thanks for the advise. Followed your twelve step (or was it six ?) program and it now works like a charm.

I can't wait until OT is dead and buried. I never seem to hurt my brain on bsd. On the other hand it seems to be making me money. I take all that back. I love OT and hope OS 8 never goes away.

Matt

At 4:24 PM +0000 11/10/03, Quinn wrote:
At 17:02 -0500 5/11/03, Matt Mashyna wrote:
I'm trying to cope with a legacy version of EnterNet. EnterNet is an OS 8/9 PPPoE utility. I have a requirement to support it in "classic" mode so suggestions about changing the installer set won't help me.

At 15:32 -0800 5/11/03, Joshua Graessley wrote:
You can't make this work in Classic running on X.

At 19:22 -0500 5/11/03, Matt Mashyna wrote:
Yes, I know. I am talking about doing it for OS 8.6->OS 9.2 only. I need to support users with old Macs who have not or will not switch to OS X.

This is, dare I say it, a classic cause of confusion. Please don't use "classic" when you mean systems prior to Mac OS X. It just confuses folks (-: There are a variety of less confusing phrases.

o My personal favourite is "traditional Mac OS".

o "Mac OS 9" works for many folks (assuming you don't support 8.x).

o Finally, "Mac OS 8 and 9" is OK if you support 8.
At 16:02 -0800 5/11/03, Eric Gundrum wrote:
You should be able to do what you want with NSL.

*cough* Now you're just trying to confuse people (-: NSL is Network Service Location, a pre-Rendezvous service discovery protocol. I presume you mean "Network Setup".

Be aware that NSL is available beginning with Mac OS 8.5, which I think is
later than your target legacy OS. You may find it easier ...
...snip...
preference file. [...]

An added benefit of directly manipulating the preference file is that you
avoid the outrageously slow NSL.

While it's reasonable to bypass Network Setup these days (as you point out, there's nothing to be gained and a lot of performance to be lost), you can't just modify TCP/IP Preference because there's some magic to make the protocol stacks recognise the changes. If you use MoreNetworkSetup, it does all the magic in the background. Otherwise you'll have to dig through MoreNetworkSetup to find the magic.

btw MoreNetworkSetup has a switch that allows you to control whether it uses Network Setup and then falls back to directly modifying the resources, or whether it always directly modifies the resources. The switch is kUseNetworkSetup in "NetworkSetupHelpers.c". I recommend setting that to false for all new development.

btbtw You can get a slightly updated version of MoreNetworkSetup by extracting it from the MoreIsBetter sample. I've made a few changes since the last time I pushed the sample as an independent entity.

<http://developer.apple.com/samplecode/Sample_Code/Overview/MoreIsBetter.htm>
At 17:02 -0500 5/11/03, Matt Mashyna wrote:
Can I use NSHGetConfiguration to get the configuration, change it and put it back with NSHSetConfiguration ?

Pretty much, yes. As a rule I recommend that folks monkeying with network settings create their own location to give the user a recovery path. So, the sequence I'd use is as follows.

1. NSHGetConfigurationList to get configuration list

2. Search the list to see if your configuration exists. If so, go to step 4.

3. NSHDuplicateConfiguration to duplicate the configuration of interest

4. NSHGetConfiguration to get the new configuration

5. monkey with the configuration digest to your hearts content

6. NSHGetConfiguration to save it back

S+E


--
----------------------------------------------------------------
Matt Mashyna email@hidden
The Frodis Co / Prodigy Internet / SBC Yahoo! Internet etc.
http://www.frodis.com
_______________________________________________
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.
References: 
 >TCP/IP settings question (From: Matt Mashyna <email@hidden>)
 >Re: TCP/IP settings question (From: Quinn <email@hidden>)

  • Prev by Date: Re: kEADDRINUSEErr and OTConnect() confusion...
  • Next by Date: Re: kEADDRINUSEErr and OTConnect() confusion...
  • Previous by thread: Re: TCP/IP settings question
  • Next by thread: ARP cache entry for router
  • Index(es):
    • Date
    • Thread