bootph Struct Reference
[PXENV_GET_CACHED_INFO]

Format of buffer filled in by pxenv_get_cached_info(). More...

#include <pxe_api.h>


Data Structures

union  bootph_vendor
 DHCP options. More...

Data Fields

UINT8_t opcode
 Message opcode.
UINT8_t Hardware
 NIC hardware type.
UINT8_t Hardlen
 MAC address length.
UINT8_t Gatehops
 Gateway hops.
UINT32_t ident
 DHCP transaction id (xid).
UINT16_t seconds
 Elapsed time.
UINT16_t Flags
 Flags.
IP4_t cip
 Client IP address.
IP4_t yip
 Your IP address.
IP4_t sip
 Server IP address.
IP4_t gip
 Gateway IP address.
MAC_ADDR_t CAddr
 Client MAC address.
UINT8_t Sname [64]
 Server host name.
UINT8_t bootfile [128]
 Boot file name.
union bootph::bootph_vendor vendor
 DHCP options.


Detailed Description

Format of buffer filled in by pxenv_get_cached_info().

This somewhat convoluted data structure simply describes the layout of a DHCP packet. Refer to RFC2131 section 2 for a full description.

Definition at line 320 of file pxe_api.h.


Field Documentation

Message opcode.

Valid values are BOOTP_REQ and BOOTP_REP.

Definition at line 325 of file pxe_api.h.

NIC hardware type.

Valid values are as for s_PXENV_UNDI_GET_INFORMATION::HwType.

Definition at line 330 of file pxe_api.h.

MAC address length.

Definition at line 331 of file pxe_api.h.

Gateway hops.

Zero in packets sent by the client. May be non-zero in replies from the DHCP server, if the reply comes via a DHCP relay agent.

Definition at line 338 of file pxe_api.h.

DHCP transaction id (xid).

Definition at line 339 of file pxe_api.h.

Elapsed time.

Number of seconds since the client began the DHCP transaction.

Definition at line 345 of file pxe_api.h.

Flags.

This is the bitwise-OR of any of the following values: BOOTP_BCAST.

Definition at line 351 of file pxe_api.h.

Client IP address.

Set only if the client already has an IP address.

Definition at line 356 of file pxe_api.h.

Your IP address.

This is the IP address that the server assigns to the client.

Definition at line 362 of file pxe_api.h.

Server IP address.

This is the IP address of the BOOTP/DHCP server.

Definition at line 367 of file pxe_api.h.

Gateway IP address.

This is the IP address of the BOOTP/DHCP relay agent, if any. It is not (necessarily) the address of the default gateway for routing purposes.

Definition at line 374 of file pxe_api.h.

Client MAC address.

Definition at line 375 of file pxe_api.h.

Server host name.

Definition at line 376 of file pxe_api.h.

Boot file name.

Definition at line 377 of file pxe_api.h.

DHCP options.

Don't ask. Just laugh. Then burn a copy of the PXE specification and send Intel an e-mail asking them if they've figured out what a "union" does in C yet.


The documentation for this struct was generated from the following file:

Generated on Tue Apr 6 20:02:02 2010 for gPXE by  doxygen 1.5.7.1