unsigned short mdi_newAssociation(unsigned short SCTP_InstanceName, unsigned short local_port, unsigned short remote_port, unsigned int tagLocal, short primaryDestinitionAddress, short noOfDestinationAddresses, union sockunion *destinationAddressList)

This function allocates memory for a new association.

Documentation

This function allocates memory for a new association. For the active side of an association, this function is called when ULP calls Associate For the passive side this function is called when a valid cookie message is received. It also creates all the modules path management, bundling and SCTP-control. The rest of the modules are created with mdi_initAssociation. The created association is put into the list of associations.

Parameters:
SCTP_InstanceName - identifier for an SCTP instance (if there are more)
local_port - src port (which this association listens to)
remote_port - destination port (peers source port)
tagLocal - randomly generated tag belonging to this association
primaryDestinitionAddress - index of the primary address
noOfDestinationAddresses - number of addresses the peer has
destinationAddressList - pointer to the array of peer's addresses
Returns:
0 for success, else 1 for failure

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.