svn commit: r266183 - stable/9/sys/netinet
Michael Tuexen
tuexen at FreeBSD.org
Thu May 15 20:06:30 UTC 2014
Author: tuexen
Date: Thu May 15 20:06:29 2014
New Revision: 266183
URL: http://svnweb.freebsd.org/changeset/base/266183
Log:
MFC r263922:
Handle an edge case of address management similar to TCP.
This needs to be reconsidered when the address handling
will be reimplemented.
The patch is from rrs at .
Modified:
stable/9/sys/netinet/sctp_pcb.c
Directory Properties:
stable/9/sys/ (props changed)
Modified: stable/9/sys/netinet/sctp_pcb.c
==============================================================================
--- stable/9/sys/netinet/sctp_pcb.c Thu May 15 20:03:57 2014 (r266182)
+++ stable/9/sys/netinet/sctp_pcb.c Thu May 15 20:06:29 2014 (r266183)
@@ -772,7 +772,14 @@ sctp_del_addr_from_vrf(uint32_t vrf_id,
}
SCTPDBG(SCTP_DEBUG_PCB4, "Deleting ifa %p\n", (void *)sctp_ifap);
sctp_ifap->localifa_flags &= SCTP_ADDR_VALID;
- sctp_ifap->localifa_flags |= SCTP_BEING_DELETED;
+ /*
+ * We don't set the flag. This means that the structure will
+ * hang around in EP's that have bound specific to it until
+ * they close. This gives us TCP like behavior if someone
+ * removes an address (or for that matter adds it right
+ * back).
+ */
+ /* sctp_ifap->localifa_flags |= SCTP_BEING_DELETED; */
vrf->total_ifa_count--;
LIST_REMOVE(sctp_ifap, next_bucket);
sctp_remove_ifa_from_ifn(sctp_ifap);
More information about the svn-src-stable-9
mailing list