checkForExistingAssociations checks wether a given association is already in the list using the equality condition given by function equalAssociations.
deleteAssociation removes the association from the list of associations, frees all data allocated for it and <calls moduleprefix>_delete*() function at all modules.
This function should be called AFTER an association has indicated a COMMUNICATION_LOST or a SHUTDOWN_COMPLETE, and the upper layer has retrieved all data it is interested in (possibly using the currently not implemented functions sctp_receive_unsent() or sctp_receive_unacked()) it really removes all data belonging to the association, and removes the association instance from the list, on explicit upper layer instruction !
This is the second function needed to fully create and initialize an association (after mdi_newAssociation()) THe association is created in two steps because data become available at the a-side in two steps
associate
init acknowledgement
At the z-side, with the cookie message all data is available at once.