Lines Matching refs:state
103 state(0),
110 uint8 state;
211 if (cookie.state == 0) {
212 cookie.state++;
218 switch (cookie.state) {
237 cookie.state++;
240 switch (cookie.state) {
267 // no options in this state, try next one
555 DHCPClient::_Negotiate(dhcp_state state)
557 if (state == BOUND)
594 while (state != BOUND) {
595 status = _StateTransition(socket, state);
596 if (status != B_OK && (state == SELECTING || state == REBOOTING))
637 DHCPClient::_GotMessage(dhcp_state& state, dhcp_message* message)
639 switch (state) {
642 state = REQUESTING;
677 state = BOUND;
686 state = INIT;
697 DHCPClient::_StateTransition(int socket, dhcp_state& state)
699 if (state == INIT) {
714 _PrepareMessage(discover, state);
717 _PrepareMessage(request, state);
720 dhcp_state originalState = state;
728 state = SELECTING;
730 state = REBOOTING;
739 // depending on the state, we'll just try again
740 if (!_TimeoutShift(socket, state, timeout))
764 if (_GotMessage(state, message) == B_OK)
885 DHCPClient::_PrepareMessage(dhcp_message& message, dhcp_state state)
921 if (state == REQUESTING) {
927 if (state == INIT || state == INIT_REBOOT
928 || state == REQUESTING) {
953 DHCPClient::_TimeoutShift(int socket, dhcp_state& state,
959 // This varies depending on the current state. In renewing and rebinding
969 if (state == RENEWING)
971 else if (state == REBINDING)
973 else if (state == SELECTING || state == REQUESTING)
977 state = state == REBINDING ? INIT : REBINDING;