mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-16 21:34:10 +00:00
Restrict local addresses until they are acked by the peer.
MFC after: 1 week
This commit is contained in:
parent
f30e8c7e71
commit
76f8482a93
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297361
|
@ -5357,6 +5357,7 @@ void
|
|||
sctp_add_local_addr_ep(struct sctp_inpcb *inp, struct sctp_ifa *ifa, uint32_t action)
|
||||
{
|
||||
struct sctp_laddr *laddr;
|
||||
struct sctp_tcb *stcb;
|
||||
int fnd, error = 0;
|
||||
|
||||
fnd = 0;
|
||||
|
@ -5402,6 +5403,9 @@ sctp_add_local_addr_ep(struct sctp_inpcb *inp, struct sctp_ifa *ifa, uint32_t ac
|
|||
default:
|
||||
break;
|
||||
}
|
||||
LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) {
|
||||
sctp_add_local_addr_restricted(stcb, ifa);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue