#ifndef __DU_SCTP_H__
#define __DU_SCTP_H__
-#include "du_cfg.h"
#include "du_mgr.h"
#include "du_log.h"
#include "cm_inet.h"
#define DU_SCTP_DOWN 0
#define DU_SCTP_UP 1
+#define DU_SCTP_CONNECTING 2
#define MAX_RETRY 5
/* Global variable declaration */
typedef struct
{
- S16 numFds; /* Total count number of receivers socket Fd */
+ S16 numFd; /* Total count number of receivers socket Fd */
U16 port; /* Filled by the InetSctpRecvMsg during polling */
U32 flag; /* Refers to the notifyHandler Flag during successful InetSctpRecvMsg*/
Buffer *mBuf; /* Buffer filled during Socket polling*/
void sendToDuApp(Buffer *mBuf, Event event);
S16 sctpSend(Buffer *mBuf, U8 itfType);
typedef S16 (*SctpNtfy) ARGS((Buffer *mBuf, CmInetSctpNotification *ntfy));
-S16 duSctpCfgReq(SctpParams sctpCfg, CmStatus *cfm);
+S16 duSctpCfgReq(SctpParams sctpCfg);
S16 fillAddrLst(CmInetNetAddrLst *addrLstPtr, F1IpAddr *ipAddr);
S16 fillDestNetAddr(CmInetNetAddr *destAddrPtr, F1IpAddr *dstIpPtr);
S16 establishReq(DuSctpDestCb *paramPtr);
-S16 duSctpAssocReq(U8 itfType, CmStatus *cfm);
+S16 duSctpAssocReq(U8 itfType);
S16 duFillSctpPst(Pst *pst, Event event);
S16 sctpSetSockOpts(CmInetFd *sock_Fd);
S16 processPolling(sctpSockPollParams *pollParams, CmInetFd *sockFd, U32 *timeoutPtr, CmInetMemInfo *memInfo, Bool recvMsgSet);