Lines Matching refs:state
9 * These functions work with the state functions in sctp_sm_statefuns.c
10 * to implement that state operations. These functions implement the
42 enum sctp_state state,
51 enum sctp_state state,
229 * relevant state machine event.
252 /* Run through the state machine. */
255 asoc->state,
294 /* Run through the state machine. */
297 asoc->state, asoc->ep, asoc,
393 asoc->state, asoc->ep, asoc,
405 * the correct state machine transition that will close the association.
434 asoc->state, asoc->ep, asoc, transport, GFP_ATOMIC);
467 asoc->state, asoc->ep, asoc,
478 /* Inject a SACK Timeout event into the state machine. */
524 * threshold is done in the state function.
535 if (transport->state != SCTP_INACTIVE)
538 if (transport->state != SCTP_UNCONFIRMED)
540 if (transport->state != SCTP_INACTIVE)
545 * threshold, and less than pathmaxrtx, and if the current state
550 transport->state == SCTP_ACTIVE &&
562 if (transport->state != SCTP_INACTIVE &&
747 if (t->asoc->state < SCTP_STATE_SHUTDOWN_PENDING)
758 if ((t->state == SCTP_INACTIVE) || (t->state == SCTP_UNCONFIRMED)) {
764 if (t->state == SCTP_PF)
806 asoc->state, asoc->ep, asoc, NULL,
855 /* Helper function to change the state of an association. */
858 enum sctp_state state)
862 asoc->state = state;
864 pr_debug("%s: asoc:%p[%s]\n", __func__, asoc, sctp_state_tbl[state]);
1035 u8 state)
1039 ev = sctp_ulpevent_make_assoc_change(asoc, 0, state, 0,
1117 asoc, sctp_state_tbl[state], state_fn->name)
1126 sctp_assoc2id(asoc))) ? asoc->state : SCTP_STATE_CLOSED])
1129 * This is the master state machine processing function.
1135 union sctp_subtype subtype, enum sctp_state state,
1149 /* Look up the state function, run it, and then process the
1152 state_fn = sctp_sm_lookup_event(net, event_type, state, subtype);
1160 error = sctp_side_effects(event_type, subtype, state,
1169 * This the master state function side effect processing function.
1173 enum sctp_state state,
1189 if (0 != (error = sctp_cmd_interpreter(event_type, subtype, state,
1197 pr_debug("%s: ignored sctp protocol event - state:%d, "
1198 "event_type:%d, event_id:%d\n", __func__, state,
1226 net_err_ratelimited("protocol violation state %d chunkid %d\n",
1227 state, subtype.chunk);
1231 pr_warn("unimplemented feature in state %d, event_type %d, event_id %d\n",
1232 state, event_type, subtype.chunk);
1236 pr_err("bug in state %d, event_type %d, event_id %d\n",
1237 state, event_type, subtype.chunk);
1242 pr_err("impossible disposition %d in state %d, event_type %d, event_id %d\n",
1243 status, state, event_type, subtype.chunk);
1262 enum sctp_state state,
1330 /* Enter a new state. */
1331 sctp_cmd_new_state(commands, asoc, cmd->obj.state);
1435 /* Generate SHUTDOWN when in SHUTDOWN_SENT state.