*******************************************************************************/
#include <unistd.h>
+/* Changes the IP information
+* At DU1, SOURCE_DU_IPV4_ADDR = 192.168.130.81 and DESTINATION_DU_IPV4_ADDR = 192.168.130.83
+* At DU2, SOURCE_DU_IPV4_ADDR = 192.168.130.83 and DESTINATION_DU_IPV4_ADDR = 192.168.130.81 */
+#define SOURCE_DU_IPV4_ADDR "192.168.130.81"
+#define DESTINATION_DU_IPV4_ADDR "192.168.130.83"
+#define PORT_NUMBER 8080
+#define NUM_THREADS 1
+
#ifdef NR_TDD
#define MAX_SLOT_VALUE 19
#else
#define NR_PCI 1
#define SLOT_DELAY 3
#define NUM_DRB_TO_PUMP_DATA 3
-#define NUM_UL_PACKETS 4
+#define NUM_UL_PACKETS 1
/*UE Ids for RACH IND*/
#define UE_IDX_0 0
#define UE_IDX_1 1
bool msgSecurityModeComp;
bool msgRrcReconfiguration;
bool msgRegistrationComp;
+ uint8_t rlcSnForSrb1; /* Sequence number of PDU at RLC for AM mode */
+ uint8_t pdcpSn; /* Sequence number of PDU at PDCP */
}UeCb;
/* Database to store information for all UE */
UeCb ueCb[MAX_NUM_UE];
}UeDb;
-UeDb ueDb;
+typedef struct ipCfg
+{
+ uint32_t sourceDu;
+ uint32_t destinationDu;
+ uint16_t portNumber;
+}IpCfg;
+
+typedef struct phyDb
+{
+ bool isServer;
+ IpCfg ipCfgInfo;
+ UeDb ueDb;
+}PhyDb;
+
+PhyDb phyDb;
typedef enum
{
uint8_t l1SendStatusPdu();
uint16_t l1BuildAndSendSlotIndication();
uint16_t l1BuildAndSendStopInd();
-
+int inet_pton(int af, const char *sourc, void *dst);
+void *establishConnectionWithPeerL1(void *args);
/**********************************************************************
End of file
**********************************************************************/