Otcfgtcprouterslist, Otcfgtcprouterslistentry – Apple Network Setup User Manual

Page 119

Advertising
background image

C H A P T E R 4

Network Setup Protocol Structures and Data Types

Protocol Structures

119

OTCfgTCPRoutersList

4

The

OTCfgTCPRoutersList

structure holds an array of

OTCfgTCPRoutersListEntry

(page 119) structures.

struct OTCfgTCPRoutersList

{

UInt16

fCount;

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

4

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.

Advertising