• 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
MoreNetworkSetup: Which port ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MoreNetworkSetup: Which port ?


  • Subject: MoreNetworkSetup: Which port ?
  • From: Jens Bauer <email@hidden>
  • Date: Sun, 10 Feb 2002 00:59:04 +0100

Hi,

I'm trying to determine if the current port of TCP/IP is set to Ethernet,
PPP or AppleTalk.

-I get the NSHTCPv4ConfigurationDigest (in 'digest') for the current
port, now I have tried testing in 2 ways:

1:
if(kOTFramingEthernet == digest->fFraming)
else if(digest->fAppleTalkZone) /* a nonzero length means
'yes' */
else if(0 == digest->fFraming) /* assume PPP */

2:
devType = OTGetDeviceTypeFromPortRef(digest->fPortRef);
switch(devType)
{
case kOTEthernetDevice:
case kOTFastEthernetDevice:


None of the above seem to work for me.
The devType seems to be 0 (no port) and even worse, the digest->fPortRef
also looks very zero to me. :(

Which way is correct ?
-And say I created the configuration myself, what would ensure that the
fPortRef field is correct ?
-It does not look to me like MoreNetworkSetup sets this value.


Love,
Jens

--
Did you know there is a better way ?
It's the new iMac. See http://www.apple.com/

--
Jens Bauer, Faster Software.
_______________________________________________
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.

  • Prev by Date: Re(3): Giving time for async notifiers
  • Next by Date: Ping: CreateAndConfigICMP: kEINVALErr
  • Previous by thread: Re: AppleTalk DDP network-wide broadcast
  • Next by thread: Ping: CreateAndConfigICMP: kEINVALErr
  • Index(es):
    • Date
    • Thread