diff --git a/src/lte/model/eps-bearer.cc b/src/lte/model/eps-bearer.cc index ae9e59be4..afb53a42b 100644 --- a/src/lte/model/eps-bearer.cc +++ b/src/lte/model/eps-bearer.cc @@ -27,7 +27,20 @@ namespace ns3 { +GbrQosInformation::GbrQosInformation () + : gbrDl (0), + gbrUl (0), + mbrDl (0), + mbrUl (0) +{ +} +AllocationRetentionPriority::AllocationRetentionPriority () + : priorityLevel (0), + preemptionCapability (false), + preemptionVulnerability (false) +{ +} EpsBearer::EpsBearer () { diff --git a/src/lte/model/eps-bearer.h b/src/lte/model/eps-bearer.h index a4f5f0e34..3aae02f67 100644 --- a/src/lte/model/eps-bearer.h +++ b/src/lte/model/eps-bearer.h @@ -32,6 +32,11 @@ namespace ns3 { */ struct GbrQosInformation { + /** + * Default constructor, inizializes member variables to zero or equivalent + */ + GbrQosInformation (); + uint64_t gbrDl; /**< Guaranteed Bit Rate (bit/s) in downlink */ uint64_t gbrUl; /**< Guaranteed Bit Rate (bit/s) in uplink */ uint64_t mbrDl; /**< Maximum Bit Rate (bit/s) in downlink */ @@ -45,6 +50,10 @@ struct GbrQosInformation */ struct AllocationRetentionPriority { + /** + * Default constructor, inizializes member variables to zero or equivalent + */ + AllocationRetentionPriority (); uint8_t priorityLevel; // /< 1-15; 1 = highest bool preemprionCapability; // /< true if bearer can preempt others bool preemprionVulnerability; // true if bearer can be preempted by others