|
|
|
@ -82,6 +82,15 @@ void pdcp_entity_nr::write_sdu(unique_byte_buffer_t sdu, bool blocking)
|
|
|
|
|
(do_integrity) ? "true" : "false",
|
|
|
|
|
(do_encryption) ? "true" : "false");
|
|
|
|
|
|
|
|
|
|
// Check for COUNT overflow
|
|
|
|
|
if (tx_overflow) {
|
|
|
|
|
log->warning("TX_NEXT has overflowed. Droping packet\n");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (tx_next + 1 == 0) {
|
|
|
|
|
tx_overflow = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Start discard timer TODO
|
|
|
|
|
// Perform header compression TODO
|
|
|
|
|
|
|
|
|
@ -100,10 +109,6 @@ void pdcp_entity_nr::write_sdu(unique_byte_buffer_t sdu, bool blocking)
|
|
|
|
|
|
|
|
|
|
// Increment TX_NEXT
|
|
|
|
|
tx_next++;
|
|
|
|
|
if (tx_next == 0 or tx_overflow) {
|
|
|
|
|
tx_overflowasdfdsaf = true;
|
|
|
|
|
log->warning("TX_NEXT has overflowed. Droping packet\n");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Check if PDCP is associated with more than on RLC entity TODO
|
|
|
|
|
// Write to lower layers
|
|
|
|
|