diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2014-09-19 11:57:21 +0200 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-09-19 11:57:21 +0200 |
commit | 0f58af66274215c4b5003b93acd4ac9ab98fe5dd (patch) | |
tree | f9fe9037900c280e2fcc79a4d7e80b5e160a5fd5 /tests/tbf/TbfTest.cpp | |
parent | 635d47c78c0adb972bab16f453867c7a2129c341 (diff) |
tests/tbf: Use correct function to enqueue llc data
The test called the llc enqueue() function directly which didn't take
care of prepending the tv values for the timeout to the data.
Now the test uses dl_tbf.append() which takes care of prepending the tv
values. With this patch make distcheck on jenkins should no longer fail
with "Discarding LLC PDU because lifetime limit reached." messages.
Diffstat (limited to 'tests/tbf/TbfTest.cpp')
-rw-r--r-- | tests/tbf/TbfTest.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/tbf/TbfTest.cpp b/tests/tbf/TbfTest.cpp index f4b2e01b..08115206 100644 --- a/tests/tbf/TbfTest.cpp +++ b/tests/tbf/TbfTest.cpp @@ -125,13 +125,8 @@ static void test_tbf_final_ack() llc_data[i] = i%256; /* Schedule two blocks */ - dl_msg = msgb_alloc(sizeof(llc_data), "llc data"); - memcpy(msgb_put(dl_msg, sizeof(llc_data)), llc_data, sizeof(llc_data)); - dl_tbf->m_llc.enqueue(dl_msg); - - dl_msg = msgb_alloc(sizeof(llc_data), "llc data"); - memcpy(msgb_put(dl_msg, sizeof(llc_data)), llc_data, sizeof(llc_data)); - dl_tbf->m_llc.enqueue(dl_msg); + dl_tbf->append_data(ms_class, 1000, llc_data, sizeof(llc_data)); + dl_tbf->append_data(ms_class, 1000, llc_data, sizeof(llc_data)); /* FIXME: Need correct frame number here? */ |