svn commit: r297361 - head/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Mon Mar 28 19:31:11 UTC 2016
Author: tuexen
Date: Mon Mar 28 19:31:10 2016
New Revision: 297361
URL: https://svnweb.freebsd.org/changeset/base/297361
Log:
Restrict local addresses until they are acked by the peer.
MFC after: 1 week
Modified:
head/sys/netinet/sctp_pcb.c
Modified: head/sys/netinet/sctp_pcb.c
==============================================================================
--- head/sys/netinet/sctp_pcb.c Mon Mar 28 18:58:40 2016 (r297360)
+++ head/sys/netinet/sctp_pcb.c Mon Mar 28 19:31:10 2016 (r297361)
@@ -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
default:
break;
}
+ LIST_FOREACH(stcb, &inp->sctp_asoc_list, sctp_tcblist) {
+ sctp_add_local_addr_restricted(stcb, ifa);
+ }
}
return;
}
More information about the svn-src-all
mailing list