Otcfgtcpinterfacesunpacked – Apple Network Setup User Manual
Page 112

C H A P T E R 4
Network Setup Protocol Structures and Data Types
112
Protocol Structures
■
(page 114) stores information about the configured
TCP/IP interfaces in packed format.
■
(page 114) structure that stores port, module, and
framing information for TCP/IP interfaces in packed format.
■
(page 115) stores information about a DHCP lease.
■
(page 116) stores name server information.
■
(page 116) stores information about whether a preference is
locked.
■
(page 119) stores an array of
(page 119) structures.
■
(page 119) stores the IP address of the router that
has been configured for this interface as the default gateway.
■
(page 120) stores the list of domains that are searched
after the implicit search domains.
■
(page 120) stores DNS configuration information.
■
(page 121) defines values that indicate when TCP/IP is
loaded.
OTCfgTCPInterfacesUnpacked
4
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 {
UInt16
fCount;
UInt8
pad1;
OTCfgTCPConfigMethodfConfigMethod;