summaryrefslogtreecommitdiffstats
path: root/include/sccp.hrl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-11-04 22:25:40 +0100
committerHarald Welte <laforge@gnumonks.org>2011-11-04 22:25:40 +0100
commitdd540862daef277ea70c1fbe95b2f9892d106602 (patch)
tree82dbe071a9dd88695538e1d1338a7f99920ba082 /include/sccp.hrl
parentdbe1c884894a657be6f5a8826148937e005152c2 (diff)
add some simplistic type / range annotations for records in headers
Diffstat (limited to 'include/sccp.hrl')
-rw-r--r--include/sccp.hrl12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/sccp.hrl b/include/sccp.hrl
index 83386cc..4201ce0 100644
--- a/include/sccp.hrl
+++ b/include/sccp.hrl
@@ -122,20 +122,22 @@
-define(SCCP_SSN_MAP_SGSN, 149).
-define(SCCP_SSN_MAP_GGSN, 150).
+-type sccp_msg_type() :: 0..255.
+-type sccp_proto_class() :: 0..3.
% a single parsed SCCP message
-record(sccp_msg, {
- msg_type,
+ msg_type :: sccp_msg_type(),
parameters
}).
-record(global_title, {
- gti,
- nature_of_addr_ind,
+ gti :: 0..15,
+ nature_of_addr_ind :: 0..255,
trans_type,
- encoding,
- numbering_plan,
+ encoding :: 0..15,
+ numbering_plan:: 0..15,
phone_number
}).