Apple Network Setup manual OTCfgTCPRoutersListEntry page 119 structures

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 119
Image 119
OTCfgTCPRoutersList

C H A P T E R 4

Network Setup Protocol Structures and Data Types

OTCfgTCPRoutersList

The OTCfgTCPRoutersList structure holds an array of OTCfgTCPRoutersListEntry (page 119) structures.

struct OTCfgTCPRoutersList

{

UInt16fCount;

OTCfgTCPRoutersListEntry fList[1];

};

Field descriptions

 

fCount

The number of elements in the fList array.

fList

An unbounded array consisting of a

 

OTCfgTCPRoutersListEntry (page 119) structures.

The preference type for this preference is kOTCfgTCPRoutersListPref, which is defined as 'irte'.

OTCfgTCPRoutersListEntry

The OTCfgTCPRoutersListEntry structure is a sub-structure of the OTCfgTCPRoutersList (page 119) structure and stores the IP address of the router that has been configured as the default gateway for this interface.

struct OTCfgTCPRoutersListEntry

{

InetHost fToHost;

InetHost fViaHost;

UInt16 fLocal;

UInt16 fHost;

};

 

Field descriptions

 

fToHost

A reserved field that you should initialize to zero.

fViaHost

The IP address of the router.

fLocal

A reserved field that you should initialize to zero.

fHost

A reserved field that you should initialize to zero.

Protocol Structures

119

Page 119
Image 119
Apple Network Setup manual OTCfgTCPRoutersListEntry page 119 structures