iPXE
Data Fields
dhcp_session_state Struct Reference

DHCP session state operations. More...

Data Fields

const char * name
 State name.
int(* tx )(struct dhcp_session *dhcp, struct dhcp_packet *dhcppkt, struct sockaddr_in *peer)
 Construct transmitted packet.
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.
void(* expired )(struct dhcp_session *dhcp)
 Handle timer expiry.
uint8_t tx_msgtype
 Transmitted message type.
uint8_t min_timeout_sec
 Timeout parameters.
uint8_t max_timeout_sec

Detailed Description

DHCP session state operations.

Definition at line 155 of file dhcp.c.


Field Documentation

State name.

Definition at line 157 of file dhcp.c.

Referenced by dhcp_set_state().

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().

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().

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().

Transmitted message type.

Definition at line 187 of file dhcp.c.

Referenced by dhcp_tx().

Timeout parameters.

Definition at line 189 of file dhcp.c.

Referenced by dhcp_set_state().

Definition at line 190 of file dhcp.c.

Referenced by dhcp_set_state().


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