[ Jira id - ODUHIGH-593 ] Pack and unpack function nomenclature correction
[o-du/l2.git] / src / du_app / du_sctp.h
index 0bc82a9..94e0c0c 100644 (file)
 #define MAX_RETRY 5
 
 /* Global variable declaration */
-uint8_t   socket_type;      /* Socket type */
-bool nonblocking;      /* Blocking/Non-blocking socket */
-bool connUp;           /* Is connection up */
-bool pollingState; 
-CmInetNetAddrLst localAddrLst;
-CmInetNetAddrLst remoteAddrLst;
+extern uint8_t   socket_type;      /* Socket type */
+extern bool nonblocking;      /* Blocking/Non-blocking socket */
+extern bool connUp;           /* Is connection up */
+extern bool pollingState; 
+extern CmInetNetAddrLst localAddrLst;
+extern CmInetNetAddrLst remoteAddrLst;
 
 typedef struct
 {
-   uint8_t           numFd;            /* Total count number of receivers socket Fd */
-   uint16_t           port;              /* Filled by the InetSctpRecvMsg during polling */              
-   uint32_t           flag;              /* Refers to the notifyHandler Flag during successful InetSctpRecvMsg*/
-   Buffer        *mBuf;             /* Buffer filled during Socket polling*/
-   MsgLen        bufLen;            /* Determines the length of the Buffer filled during socket polling */
+   uint8_t     numFd;            /* Total count number of receivers socket Fd */
+   uint16_t    port;              /* Filled by the InetSctpRecvMsg during polling */              
+   uint32_t    flag;              /* Refers to the notifyHandler Flag during successful InetSctpRecvMsg*/
+   Buffer      *mBuf;             /* Buffer filled during Socket polling*/
+   MsgLen      bufLen;            /* Determines the length of the Buffer filled during socket polling */
    CmInetNetAddr addr;              /* Determines the destination port filled during socket polling */
    CmInetFdSet      readFd;         /* Refers to the Read Fd socket */
    CmInetSctpSndRcvInfo   info;     /* Refers to Send Receivers Info*/
@@ -61,8 +61,8 @@ typedef struct
 }DuSctpDestCb;
 
 /* Global variable declaration */
-DuSctpDestCb f1Params;     /* SCTP configurations at DU */ 
-DuSctpDestCb ricParams;    /* SCTP configurations at DU */ 
+extern DuSctpDestCb f1Params;     /* SCTP configurations at DU */ 
+extern DuSctpDestCb ricParams;    /* SCTP configurations at DU */ 
 
 
 uint8_t sctpActvInit(Ent entity, Inst inst, Region region, Reason reason);