Apple Network Setup manual OTCfgRemoteLogOptions, OTCfgRemotePassword

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 135
Image 135
OTCfgRemoteLogOptions

C H A P T E R 4

Network Setup Protocol Structures and Data Types

OTCfgRemoteLogOptions

The OTCfgRemoteLogOptions structure controls the level of logging performed by ARA.

struct OTCfgRemoteLogOptions {

UInt32 version;

UInt32 fType;

UInt32 additionalPtr;

OTCfgRemoteLogLevel logLevel;

UInt32 reserved[4];

};

typedef struct OTCfgRemoteLogOptions OTCfgRemoteLogOptions;

version

Depending how the preference was constructed, version

 

may be kOTCfgRemoteDefaultVersion or

 

kOTCfgRemoteAcceptedVersion. When reading the version

 

field, accept either value. When writing the version field,

 

set it to kOTCfgRemoteDefaultVersion.

fType

Must be ‘lgop’.

additional

Run-time use only. Initialize to zero. When reading, ignore

 

the value of additionalPtr. When writing additionalPtr,

 

preserve its value.

logLevel

The log level. For possible values, see the

 

OTCfgRemoteLogLevel (page 168) enumeration.

reserved

Reserved.

The preference type for this preference is kOTCfgRemoteLogOptionsPref, which is defined as 'logo'.

OTCfgRemotePassword

The OTCfgRemotePassword structure holds the user’s dialup password in encrypted form. For sample code, see Listing 2-17 in Chapter 2, “Using Network Setup.”

Protocol Structures

135

Page 135
Image 135
Apple Network Setup manual OTCfgRemoteLogOptions, OTCfgRemotePassword