Whitespace changes and fixing a typo. No functional change.
Approved by: re (kib@) MFC after: 1 week
This commit is contained in:
parent
a62d8e729c
commit
26444c890a
@ -5669,7 +5669,6 @@ sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int lengt
|
||||
vrf_id, port);
|
||||
goto out;
|
||||
}
|
||||
|
||||
}
|
||||
if (IS_SCTP_CONTROL(ch)) {
|
||||
/* process the control portion of the SCTP packet */
|
||||
|
@ -7210,7 +7210,7 @@ sctp_move_to_outqueue(struct sctp_tcb *stcb,
|
||||
if ((sp->msg_is_complete) && (sp->length == 0)) {
|
||||
if (sp->sender_all_done) {
|
||||
/*
|
||||
* We are doing differed cleanup. Last time through
|
||||
* We are doing defered cleanup. Last time through
|
||||
* when we took all the data the sender_all_done was
|
||||
* not set.
|
||||
*/
|
||||
|
@ -3700,7 +3700,7 @@ sctp_ulp_notify(uint32_t notification, struct sctp_tcb *stcb,
|
||||
return;
|
||||
}
|
||||
if ((SCTP_GET_STATE(stcb) == SCTP_STATE_COOKIE_WAIT) ||
|
||||
(SCTP_GET_STATE(stcb) == SCTP_STATE_COOKIE_ECHOED)) {
|
||||
(SCTP_GET_STATE(stcb) == SCTP_STATE_COOKIE_ECHOED)) {
|
||||
if ((notification == SCTP_NOTIFY_INTERFACE_DOWN) ||
|
||||
(notification == SCTP_NOTIFY_INTERFACE_UP) ||
|
||||
(notification == SCTP_NOTIFY_INTERFACE_CONFIRMED)) {
|
||||
@ -7391,8 +7391,8 @@ sctp_set_state(struct sctp_tcb *stcb, int new_state)
|
||||
#endif
|
||||
|
||||
KASSERT((new_state & ~SCTP_STATE_MASK) == 0,
|
||||
("sctp_set_state: Can't set substate (new_state = %x)",
|
||||
new_state));
|
||||
("sctp_set_state: Can't set substate (new_state = %x)",
|
||||
new_state));
|
||||
stcb->asoc.state = (stcb->asoc.state & ~SCTP_STATE_MASK) | new_state;
|
||||
if ((new_state == SCTP_STATE_SHUTDOWN_RECEIVED) ||
|
||||
(new_state == SCTP_STATE_SHUTDOWN_SENT) ||
|
||||
@ -7402,7 +7402,7 @@ sctp_set_state(struct sctp_tcb *stcb, int new_state)
|
||||
#if defined(KDTRACE_HOOKS)
|
||||
if (((old_state & SCTP_STATE_MASK) != new_state) &&
|
||||
!(((old_state & SCTP_STATE_MASK) == SCTP_STATE_EMPTY) &&
|
||||
(new_state == SCTP_STATE_INUSE))) {
|
||||
(new_state == SCTP_STATE_INUSE))) {
|
||||
SCTP_PROBE6(state__change, NULL, stcb, NULL, stcb, NULL, old_state);
|
||||
}
|
||||
#endif
|
||||
@ -7416,14 +7416,14 @@ sctp_add_substate(struct sctp_tcb *stcb, int substate)
|
||||
#endif
|
||||
|
||||
KASSERT((substate & SCTP_STATE_MASK) == 0,
|
||||
("sctp_add_substate: Can't set state (substate = %x)",
|
||||
substate));
|
||||
("sctp_add_substate: Can't set state (substate = %x)",
|
||||
substate));
|
||||
stcb->asoc.state |= substate;
|
||||
#if defined(KDTRACE_HOOKS)
|
||||
if (((substate & SCTP_STATE_ABOUT_TO_BE_FREED) &&
|
||||
((old_state & SCTP_STATE_ABOUT_TO_BE_FREED) == 0)) ||
|
||||
((old_state & SCTP_STATE_ABOUT_TO_BE_FREED) == 0)) ||
|
||||
((substate & SCTP_STATE_SHUTDOWN_PENDING) &&
|
||||
((old_state & SCTP_STATE_SHUTDOWN_PENDING) == 0))) {
|
||||
((old_state & SCTP_STATE_SHUTDOWN_PENDING) == 0))) {
|
||||
SCTP_PROBE6(state__change, NULL, stcb, NULL, stcb, NULL, old_state);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user