Improve comments.
MFC after: 1 week.
This commit is contained in:
parent
356e59b3b8
commit
3a242c4813
@ -2342,13 +2342,13 @@ sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize,
|
||||
|
||||
if ((stcb) && (net)) {
|
||||
if (net->dest_state & SCTP_ADDR_UNCONFIRMED) {
|
||||
/* Its unconfirmed */
|
||||
/* It's unconfirmed */
|
||||
paddri->spinfo_state = SCTP_UNCONFIRMED;
|
||||
} else if (net->dest_state & SCTP_ADDR_REACHABLE) {
|
||||
/* The Active */
|
||||
/* It's active */
|
||||
paddri->spinfo_state = SCTP_ACTIVE;
|
||||
} else {
|
||||
/* It's Inactive */
|
||||
/* It's inactive */
|
||||
paddri->spinfo_state = SCTP_INACTIVE;
|
||||
}
|
||||
paddri->spinfo_cwnd = net->cwnd;
|
||||
@ -2422,10 +2422,10 @@ sctp_getopt(struct socket *so, int optname, void *optval, size_t *optsize,
|
||||
/* It's unconfirmed */
|
||||
sstat->sstat_primary.spinfo_state = SCTP_UNCONFIRMED;
|
||||
} else if (net->dest_state & SCTP_ADDR_REACHABLE) {
|
||||
/* Its active */
|
||||
/* It's active */
|
||||
sstat->sstat_primary.spinfo_state = SCTP_ACTIVE;
|
||||
} else {
|
||||
/* It's Inactive */
|
||||
/* It's inactive */
|
||||
sstat->sstat_primary.spinfo_state = SCTP_INACTIVE;
|
||||
}
|
||||
sstat->sstat_primary.spinfo_cwnd = net->cwnd;
|
||||
|
Loading…
Reference in New Issue
Block a user