• 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: Quinn <email@hidden>
  • Date: Mon, 10 Nov 2003 16:24:45 +0000

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 to ignore NSL and
directly modify the TCP/IP control panel configuration resources in its
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
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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.

  • Follow-Ups:
    • Re: TCP/IP settings question
      • From: Matt Mashyna <email@hidden>
References: 
 >TCP/IP settings question (From: Matt Mashyna <email@hidden>)

  • Prev by Date: Re: TCPDump on Panther
  • Next by Date: Re: socklen_t issue on Panther
  • Previous by thread: Re: TCP/IP settings question
  • Next by thread: Re: TCP/IP settings question
  • Index(es):
    • Date
    • Thread