aboutsummaryrefslogtreecommitdiffstats
path: root/BSSMAP.st
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-11-27 13:59:16 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-11-27 14:00:26 +0100
commita57c26261c051a3211887b8bbb9a640182090366 (patch)
treecdfd4cdef8975a4c9b8643ebfb0efbc449ea644d /BSSMAP.st
parent6389190fb64acba85bf92870c3b0162093d8d93e (diff)
Messages: Prepare to parse TV and TLV messages
Ask the BSSMAP type for the size of the payload. This does not include the Tag and the Length field. BSSMAP and GSM48 behave a bit differently here. The support for T might still be a bit broken.
Diffstat (limited to 'BSSMAP.st')
-rw-r--r--BSSMAP.st4
1 files changed, 4 insertions, 0 deletions
diff --git a/BSSMAP.st b/BSSMAP.st
index fa55c8c..43bb14a 100644
--- a/BSSMAP.st
+++ b/BSSMAP.st
@@ -1,6 +1,10 @@
IEBase subclass: GSM0808IE [
<category: 'osmo-message'>
<comment: 'Base class of IEs for GSM0808'>
+
+ GSM0808IE class >> length: aByteArray [
+ ^ (aByteArray at: 2).
+ ]
]
Object subclass: GSM0808Helper [