MoreNetworkSetup: Which port ?
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.