Apple Network Setup manual OTCfgTCPDHCPLeaseInfo

Models: Network Setup

1 184
Download 184 pages 5.56 Kb
Page 115
Image 115
OTCfgTCPDHCPLeaseInfo

C H A P T E R 4

Network Setup Protocol Structures and Data Types

struct OTCfgTCPInterfacesPackedPart

{

UInt8 path[kMaxPortNameSize];

UInt8 module[kMaxModuleNameSize];

UInt32 framing;

};

 

Field descriptions

 

path

The name of the port over which this interface

 

communicates.

module

The name of the module that controls the port over which

 

this interface communicates.

framing

Ethernet framing options. Constants are defined in the file

 

“OpenTransportProviders.h,” an Open Transport header

 

file.

OTCfgTCPDHCPLeaseInfo

The OTCfgTCPLeaseDHCPInfo structure stores information about the DHCP lease for an interface.

struct OTCfgTCPDHCPLeaseInfo

{

InetHost ipIPAddr;

InetHost ipConfigServer;

UInt32 ipLeaseGrantTime;

UInt32 ipLeaseExpirationTime;

};

Field descriptions

 

ipIPAddr

The IP address that has been assigned.

ipConfigServer

The IP address of the DHCP server.

ipLeaseGrantTime

The time at which the lease was acquired. The time is in

 

seconds as returned by GetDateTime.

ipLeaseExpirationTime

The time at which the lease expires. The time is in seconds as returned by GetDateTime.

Protocol Structures

115

Page 115
Image 115
Apple Network Setup manual OTCfgTCPDHCPLeaseInfo