Apple Network Setup manual OTCfgTCPInterfacesUnpacked

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 112
Image 112
OTCfgTCPInterfacesUnpacked

C H A P T E R 4

Network Setup Protocol Structures and Data Types

OTCfgTCPInterfacesPacked (page 114) stores information about the configured TCP/IP interfaces in packed format.

OTCfgTCPInterfacesPackedPart (page 114) is a member of the

OTCfgTCPInterfacesPacked (page 114) structure that stores port, module, and framing information for TCP/IP interfaces in packed format.

OTCfgTCPDHCPLeaseInfo (page 115) stores information about a DHCP lease.

OTCfgTCPDNSServersList (page 116) stores name server information.

OTCfgTCPLocks (page 116) stores information about whether a preference is locked.

OTCfgTCPRoutersList (page 119) stores an array of OTCfgTCPRoutersListEntry

(page 119) structures.

OTCfgTCPRoutersListEntry (page 119) stores the IP address of the router that has been configured for this interface as the default gateway.

OTCfgTCPSearchDomains (page 120) stores the list of domains that are searched after the implicit search domains.

OTCfgTCPSearchList (page 120) stores DNS configuration information.

OTCfgTCPUnloadAttr (page 121) defines values that indicate when TCP/IP is loaded.

OTCfgTCPInterfacesUnpacked

The OTCfgTCPInterfacesUnpacked structure stores information about the configured TCP/IP interfaces in unpacked 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 OTCfgTCPInterfacesUnpacked {

UInt16fCount;

UInt8pad1;

OTCfgTCPConfigMethodfConfigMethod;

112Protocol Structures

Page 112
Image 112
Apple Network Setup manual OTCfgTCPInterfacesUnpacked