X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2Fdu_app%2Fdu_sctp.h;fp=src%2Fdu_app%2Fdu_sctp.h;h=f9efaf50f30faf4705381767ebc8e4e5d2df207b;hb=d349ae65e1495488772f87e5cfa1ae71d9eab075;hp=efdffc36bb7a3663f00aee3e5e546ac3f4f442ad;hpb=829bbd114f1c3dc00c1da47bca0a8207c049df3f;p=o-du%2Fl2.git diff --git a/src/du_app/du_sctp.h b/src/du_app/du_sctp.h index efdffc36b..f9efaf50f 100644 --- a/src/du_app/du_sctp.h +++ b/src/du_app/du_sctp.h @@ -21,32 +21,24 @@ #ifndef __DU_SCTP_H__ #define __DU_SCTP_H__ -#include -#include #include "du_mgr.h" +#include "cm_inet.h" +#include "cm_tpt.h" + +#include "cm_inet.x" +#include "cm_tpt.x" S16 sctpActvInit(Ent entity, Inst inst, Region region, Reason reason); S16 sctpActvTsk(Pst *pst, Buffer *mBuf); +void sctpAssocReq(); +void sendToDuApp(Buffer *mBuf, Event event); +S16 sctpOutMsgSend(Buffer *mBuf); +typedef S16 (*SctpNtfy) ARGS((Buffer *mBuf, CmInetSctpNotification *ntfy)); + +S16 cmPkSctpNtfy(CmInetSctpNotification *ntfy); +S16 cmUnpkSctpNtfy(SctpNtfy func, Pst *pst, Buffer *mBuf); -#define REALLY_BIG 65536 - -/* Convenience structure to determine space needed for cmsg. */ -typedef union -{ - struct sctp_initmsg init; - struct sctp_sndrcvinfo sndrcvinfo; -}_sctp_cmsg_data_t; - -#define CMSG_SPACE_INITMSG (CMSG_SPACE(sizeof(struct sctp_initmsg))) -#define CMSG_SPACE_SNDRCV (CMSG_SPACE(sizeof(struct sctp_sndrcvinfo))) - -typedef union -{ - struct sockaddr_storage ss; - struct sockaddr_in v4; - struct sockaddr_in6 v6; - struct sockaddr sa; -} sockaddr_storage_t; +#define MAX_RETRY 5 #endif