Apple Network Setup manual partsizeofOTCfgTCPInterfacesPackedPart

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 114
Image 114
OTCfgTCPInterfacesPacked

C H A P T E R 4

Network Setup Protocol Structures and Data Types

OTCfgTCPInterfacesPacked

The OTCfgTCPInterfacesPacked structure stores information about the configured TCP/IP interfaces in packed format. See Listing 2-16 in Chapter 2, “Using Network Setup,” for sample code that packs and unpacks this structure.

IMPORTANT

You must pack this structure before you write it to the database and you must unpack this structure after you reading it from the database.

struct OTCfgTCPInterfacesPacked {

UInt16

fCount;

UInt8

fConfigMethod;

UInt8

fIPAddress[4];

UInt8

fSubnetMask[4];

UInt8

fAppleTalkZone[256];

UInt8

part[sizeof(OTCfgTCPInterfacesPackedPart)];

};

Field descriptions

 

fCount

A value that is always 1 in the current versions of Open

 

Transport.

fConfigMethod

The configuration method. For possible values, see

 

OTCfgTCPConfigMethod (page 162).

fIPAddress

The IP address that has been assigned to this interface.

fSubnetMask

The subnet mask.

fAppleTalkZone

The AppleTalk zone for this interface. Remove trailing

 

bytes when you pack this structure.

part

A OTCfgTCPInterfacesPackedPart (page 114) structure

 

containing port, module, and framing information.

OTCfgTCPInterfacesPackedPart

The OTCfgTCPInterfacesPackedPart structure is a member of the OTCfgTCPInterfacesPacked (page 114) structure and stores port, module and framing information about the configured TCP/IP interfaces.

114Protocol Structures

Page 114
Image 114
Apple Network Setup manual partsizeofOTCfgTCPInterfacesPackedPart