aboutsummaryrefslogtreecommitdiffstats
path: root/src/tbf.h
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2014-07-30 19:12:28 +0200
committerDaniel Willmann <daniel@totalueberwachung.de>2014-08-07 13:03:10 +0200
commitb8f260176ee7877384ce39e9699e1a2e2b092ddb (patch)
treea458a22a0daa46b1b2bc0dc6eaffbf553fb41bbf /src/tbf.h
parent6c813fc9bc024efba40810421148f28973ce74af (diff)
tbf: Make create_new_bsn and create_dl_acked_block a method of DL TBF
These functions are only used for DL TBFs so move them. sched_select_downlink() in src/gprs_rlcmac_sched.cpp now needs to deal with DL TBFs instead of the base class. Ticket: SYS#389 Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/tbf.h')
-rw-r--r--src/tbf.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/tbf.h b/src/tbf.h
index 04ae1910..6681836a 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -121,7 +121,6 @@ struct gprs_rlcmac_tbf {
/* TODO: extract LLC class? */
int assemble_forward_llc(const gprs_rlc_data *data);
- struct msgb *create_dl_acked_block(uint32_t fn, uint8_t ts);
struct msgb *create_dl_ass(uint32_t fn);
struct msgb *create_ul_ass(uint32_t fn);
struct msgb *create_ul_ack(uint32_t fn);
@@ -270,9 +269,6 @@ protected:
int extract_tlli(const uint8_t *data, const size_t len);
void maybe_schedule_uplink_acknack(const rlc_ul_header *rh);
- struct msgb *create_dl_acked_block(const uint32_t fn, const uint8_t ts,
- const int index, const bool fin_first_ack);
- struct msgb *create_new_bsn(const uint32_t fn, const uint8_t ts);
};
@@ -354,6 +350,12 @@ struct gprs_rlcmac_dl_tbf : public gprs_rlcmac_tbf {
const uint8_t *data, const uint16_t len);
int rcvd_dl_ack(uint8_t final, uint8_t ssn, uint8_t *rbb);
+ struct msgb *create_dl_acked_block(uint32_t fn, uint8_t ts);
+
+protected:
+ struct msgb *create_new_bsn(const uint32_t fn, const uint8_t ts);
+ struct msgb *create_dl_acked_block(const uint32_t fn, const uint8_t ts,
+ const int index, const bool fin_first_ack);
};
struct gprs_rlcmac_ul_tbf : public gprs_rlcmac_tbf {