iPXE
Data Fields
dhcp_session_state Struct Reference

DHCP session state operations. More...

Data Fields

const char * name
 State name. More...
 
int(* tx )(struct dhcp_session *dhcp, struct dhcp_packet *dhcppkt, struct sockaddr_in *peer)
 Construct transmitted packet. More...
 
void(* rx )(struct dhcp_session *dhcp, struct dhcp_packet *dhcppkt, struct sockaddr_in *peer, uint8_t msgtype, struct in_addr server_id, struct in_addr pseudo_id)
 Handle received packet. More...
 
void(* expired )(struct dhcp_session *dhcp)
 Handle timer expiry. More...
 
uint8_t tx_msgtype
 Transmitted message type. More...
 
uint8_t min_timeout_sec
 Timeout parameters. More...
 
uint8_t max_timeout_sec
 

Detailed Description

DHCP session state operations.

Definition at line 155 of file dhcp.c.

Field Documentation

◆ name

const char* dhcp_session_state::name

State name.

Definition at line 157 of file dhcp.c.

◆ tx

int( * dhcp_session_state::tx) (struct dhcp_session *dhcp, struct dhcp_packet *dhcppkt, struct sockaddr_in *peer)

Construct transmitted packet.

Parameters
dhcpDHCP session
dhcppktDHCP packet
peerDestination address

Definition at line 165 of file dhcp.c.

Referenced by dhcp_tx().

◆ rx

void( * dhcp_session_state::rx) (struct dhcp_session *dhcp, struct dhcp_packet *dhcppkt, struct sockaddr_in *peer, uint8_t msgtype, struct in_addr server_id, struct in_addr pseudo_id)

Handle received packet.

Parameters
dhcpDHCP session
dhcppktDHCP packet
peerDHCP server address
msgtypeDHCP message type
server_idDHCP server ID
pseudo_idDHCP server pseudo-ID

Definition at line 177 of file dhcp.c.

Referenced by dhcp_deliver().

◆ expired

void( * dhcp_session_state::expired) (struct dhcp_session *dhcp)

Handle timer expiry.

Parameters
dhcpDHCP session

Definition at line 185 of file dhcp.c.

Referenced by dhcp_timer_expired().

◆ tx_msgtype

uint8_t dhcp_session_state::tx_msgtype

Transmitted message type.

Definition at line 187 of file dhcp.c.

Referenced by dhcp_tx().

◆ min_timeout_sec

uint8_t dhcp_session_state::min_timeout_sec

Timeout parameters.

Definition at line 189 of file dhcp.c.

◆ max_timeout_sec

uint8_t dhcp_session_state::max_timeout_sec

Definition at line 190 of file dhcp.c.


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