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)
 Handle received packet.
void(* expired )(struct dhcp_session *dhcp)
 Handle timer expiry.
uint8_t tx_msgtype
 Transmitted message type.
uint8_t apply_min_timeout
 Apply minimum timeout.


Detailed Description

DHCP session state operations.

Definition at line 168 of file dhcp.c.


Field Documentation

State name.

Definition at line 170 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:
dhcp DHCP session
dhcppkt DHCP packet
peer Destination address

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)

Handle received packet.

Parameters:
dhcp DHCP session
dhcppkt DHCP packet
peer DHCP server address
msgtype DHCP message type
server_id DHCP server ID

Referenced by dhcp_deliver_iob().

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

Handle timer expiry.

Parameters:
dhcp DHCP session

Referenced by dhcp_timer_expired().

Transmitted message type.

Definition at line 199 of file dhcp.c.

Referenced by dhcp_tx().

Apply minimum timeout.

Definition at line 201 of file dhcp.c.

Referenced by dhcp_set_state().


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

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