|
iPXE
|
A DHCP header. More...
#include <dhcp.h>
Data Fields | |
| uint8_t | op |
| Operation. More... | |
| uint8_t | htype |
| Hardware address type. More... | |
| uint8_t | hlen |
| Hardware address length. More... | |
| uint8_t | hops |
| Number of hops from server. More... | |
| uint32_t | xid |
| Transaction ID. More... | |
| uint16_t | secs |
| Seconds since start of acquisition. More... | |
| uint16_t | flags |
| Flags. More... | |
| struct in_addr | ciaddr |
| "Client" IP address More... | |
| struct in_addr | yiaddr |
| "Your" IP address More... | |
| struct in_addr | siaddr |
| "Server" IP address More... | |
| struct in_addr | giaddr |
| "Gateway" IP address More... | |
| uint8_t | chaddr [16] |
| Client hardware address. More... | |
| char | sname [64] |
| Server host name (null terminated) More... | |
| char | file [128] |
| Boot file name (null terminated) More... | |
| uint32_t | magic |
| DHCP magic cookie. More... | |
| uint8_t | options [0] |
| DHCP options. More... | |
| uint8_t dhcphdr::op |
Operation.
This must be either BOOTP_REQUEST or BOOTP_REPLY.
Definition at line 620 of file dhcp.h.
Referenced by dhcp_create_packet().
| uint8_t dhcphdr::htype |
Hardware address type.
This is an ARPHRD_XXX constant. Note that ARPHRD_XXX constants are nominally 16 bits wide; this could be considered to be a bug in the BOOTP/DHCP specification.
Definition at line 627 of file dhcp.h.
Referenced by dhcp_create_packet().
| uint8_t dhcphdr::hlen |
| uint32_t dhcphdr::xid |
Transaction ID.
Definition at line 633 of file dhcp.h.
Referenced by dhcp_create_packet(), dhcp_deliver(), and dhcpv6_tx().
| uint16_t dhcphdr::secs |
| uint16_t dhcphdr::flags |
| struct in_addr dhcphdr::ciaddr |
"Client" IP address
This is filled in if the client already has an IP address assigned and can respond to ARP requests.
Definition at line 643 of file dhcp.h.
Referenced by create_fakepxebsack(), and dhcp_create_request().
| struct in_addr dhcphdr::yiaddr |
"Your" IP address
This is the IP address assigned by the server to the client.
Definition at line 648 of file dhcp.h.
Referenced by dhcp_discovery_rx(), and dhcp_request_rx().
| struct in_addr dhcphdr::siaddr |
"Server" IP address
This is the IP address of the next server to be used in the boot process.
Definition at line 654 of file dhcp.h.
Referenced by dhcp_deliver(), and dhcp_has_pxeopts().
| struct in_addr dhcphdr::giaddr |
| uint8_t dhcphdr::chaddr[16] |
Client hardware address.
Definition at line 661 of file dhcp.h.
Referenced by cachedhcp_apply(), dhcp_create_packet(), and dhcp_deliver().
| char dhcphdr::sname[64] |
| char dhcphdr::file[128] |
| uint32_t dhcphdr::magic |
DHCP magic cookie.
Must have the value DHCP_MAGIC_COOKIE.
Definition at line 676 of file dhcp.h.
Referenced by dhcp_create_packet().
| uint8_t dhcphdr::options[0] |
DHCP options.
Variable length; extends to the end of the packet. Minimum length (for the sake of sanity) is 1, to allow for a single DHCP_END tag.
Definition at line 683 of file dhcp.h.
Referenced by dhcp_create_packet(), dhcppkt_init(), and dhcpv6_rx().
1.8.15