diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-07 08:15:58 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2013-11-07 08:15:58 +0100 |
commit | acb5427bda2b6727b96420502ac1261ae4c8d38c (patch) | |
tree | 3afc631640927b7c4e9a15ca4a698de96274da3d /src/llc.cpp | |
parent | be57081721c13d1d2896f0a843f8759add7f58b9 (diff) |
llc: Move all direct accesses to the frame into the llc structure
Add some todo items where we could add assertions now that I see
the constraints and invariants of this code.
Diffstat (limited to 'src/llc.cpp')
-rw-r--r-- | src/llc.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/llc.cpp b/src/llc.cpp index f5daa1e8..a4fd7afa 100644 --- a/src/llc.cpp +++ b/src/llc.cpp @@ -22,8 +22,6 @@ #include <tbf.h> #include <bts.h> -#include <string.h> - extern "C" { #include <osmocom/core/msgb.h> } @@ -73,6 +71,7 @@ struct msgb *gprs_llc::dequeue() void gprs_llc::update_frame(struct msgb *msg) { + /* TODO: assert that index is 0 now */ /* TODO: bounds check */ memcpy(frame, msg->data, msg->len); length = msg->len; |