iPXE
Data Fields
dhcp_session Struct Reference

A DHCP session. More...

Data Fields

struct refcnt refcnt
 Reference counter. More...
 
struct interface job
 Job control interface. More...
 
struct interface xfer
 Data transfer interface. More...
 
struct net_devicenetdev
 Network device being configured. More...
 
struct sockaddr_in local
 Local socket address. More...
 
struct dhcp_session_statestate
 State of the session. More...
 
uint32_t xid
 Transaction ID (in network-endian order) More...
 
struct in_addr offer
 Offered IP address. More...
 
struct in_addr server
 DHCP server. More...
 
int priority
 DHCP offer priority. More...
 
int no_pxedhcp
 ProxyDHCP protocol extensions should be ignored. More...
 
struct in_addr proxy_server
 ProxyDHCP server. More...
 
struct dhcp_packetproxy_offer
 ProxyDHCP offer. More...
 
int proxy_priority
 ProxyDHCP offer priority. More...
 
uint16_t pxe_type
 PXE Boot Server type. More...
 
struct in_addrpxe_attempt
 List of PXE Boot Servers to attempt. More...
 
struct in_addrpxe_accept
 List of PXE Boot Servers to accept. More...
 
struct retry_timer timer
 Retransmission timer. More...
 
unsigned int count
 Transmission counter. More...
 
unsigned long start
 Start time of the current state (in ticks) More...
 

Detailed Description

A DHCP session.

Definition at line 199 of file dhcp.c.

Field Documentation

◆ refcnt

struct refcnt dhcp_session::refcnt

Reference counter.

Definition at line 201 of file dhcp.c.

Referenced by start_dhcp(), and start_pxebs().

◆ job

struct interface dhcp_session::job

Job control interface.

Definition at line 203 of file dhcp.c.

Referenced by dhcp_finished(), start_dhcp(), and start_pxebs().

◆ xfer

struct interface dhcp_session::xfer

Data transfer interface.

Definition at line 205 of file dhcp.c.

Referenced by dhcp_finished(), dhcp_tx(), start_dhcp(), and start_pxebs().

◆ netdev

struct net_device* dhcp_session::netdev

Network device being configured.

Definition at line 208 of file dhcp.c.

Referenced by dhcp_deliver(), dhcp_discovery_expired(), dhcp_free(), dhcp_request_rx(), dhcp_tx(), start_dhcp(), and start_pxebs().

◆ local

struct sockaddr_in dhcp_session::local

Local socket address.

Definition at line 210 of file dhcp.c.

Referenced by dhcp_request_rx(), dhcp_tx(), start_dhcp(), and start_pxebs().

◆ state

struct dhcp_session_state* dhcp_session::state

State of the session.

Definition at line 212 of file dhcp.c.

Referenced by dhcp_deliver(), dhcp_set_state(), dhcp_timer_expired(), and dhcp_tx().

◆ xid

uint32_t dhcp_session::xid

Transaction ID (in network-endian order)

Definition at line 214 of file dhcp.c.

Referenced by dhcp_deliver(), dhcp_tx(), and start_dhcp().

◆ offer

struct in_addr dhcp_session::offer

Offered IP address.

Definition at line 217 of file dhcp.c.

Referenced by dhcp_discovery_expired(), dhcp_discovery_rx(), dhcp_request_rx(), dhcp_request_tx(), and dhcp_tx().

◆ server

struct in_addr dhcp_session::server

DHCP server.

Definition at line 219 of file dhcp.c.

Referenced by dhcp_discovery_rx(), dhcp_request_rx(), and dhcp_request_tx().

◆ priority

int dhcp_session::priority

DHCP offer priority.

Definition at line 221 of file dhcp.c.

Referenced by dhcp_discovery_rx().

◆ no_pxedhcp

int dhcp_session::no_pxedhcp

ProxyDHCP protocol extensions should be ignored.

Definition at line 224 of file dhcp.c.

Referenced by dhcp_discovery_rx(), and dhcp_request_rx().

◆ proxy_server

struct in_addr dhcp_session::proxy_server

ProxyDHCP server.

Definition at line 226 of file dhcp.c.

Referenced by dhcp_discovery_rx(), dhcp_proxy_rx(), and dhcp_proxy_tx().

◆ proxy_offer

struct dhcp_packet* dhcp_session::proxy_offer

ProxyDHCP offer.

Definition at line 228 of file dhcp.c.

Referenced by dhcp_discovery_rx(), dhcp_free(), dhcp_request_rx(), and dhcp_tx().

◆ proxy_priority

int dhcp_session::proxy_priority

ProxyDHCP offer priority.

Definition at line 230 of file dhcp.c.

Referenced by dhcp_discovery_rx().

◆ pxe_type

uint16_t dhcp_session::pxe_type

PXE Boot Server type.

Definition at line 233 of file dhcp.c.

Referenced by dhcp_pxebs_rx(), dhcp_pxebs_tx(), pxebs_list(), and start_pxebs().

◆ pxe_attempt

struct in_addr* dhcp_session::pxe_attempt

List of PXE Boot Servers to attempt.

Definition at line 235 of file dhcp.c.

Referenced by dhcp_pxebs_expired(), dhcp_pxebs_tx(), and start_pxebs().

◆ pxe_accept

struct in_addr* dhcp_session::pxe_accept

List of PXE Boot Servers to accept.

Definition at line 237 of file dhcp.c.

Referenced by dhcp_pxebs_accept(), and start_pxebs().

◆ timer

struct retry_timer dhcp_session::timer

Retransmission timer.

Definition at line 240 of file dhcp.c.

Referenced by dhcp_discovery_expired(), dhcp_finished(), dhcp_set_state(), dhcp_tx(), start_dhcp(), and start_pxebs().

◆ count

unsigned int dhcp_session::count

Transmission counter.

Definition at line 242 of file dhcp.c.

Referenced by dhcp_discovery_expired(), dhcp_timer_expired(), and dhcp_tx().

◆ start

unsigned long dhcp_session::start

Start time of the current state (in ticks)

Definition at line 244 of file dhcp.c.

Referenced by dhcp_discovery_expired(), dhcp_discovery_rx(), dhcp_proxy_expired(), dhcp_pxebs_expired(), and dhcp_set_state().


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