aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-20 19:06:50 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-20 19:21:06 +0200
commitbc3d8dd89eba2a5a0eca4ec34b3a789e65edb0d7 (patch)
tree275fde165092361de726428340f17bd5fb43fc32
parent721c457e614a16942ec92648963f71a6ff55341c (diff)
lua: Check for assignment failures
-rw-r--r--openbsc/contrib/a-link/sccp-split-by-con.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/openbsc/contrib/a-link/sccp-split-by-con.lua b/openbsc/contrib/a-link/sccp-split-by-con.lua
index df3a70bad..ad1835269 100644
--- a/openbsc/contrib/a-link/sccp-split-by-con.lua
+++ b/openbsc/contrib/a-link/sccp-split-by-con.lua
@@ -25,6 +25,19 @@ do
function check_failure(con)
check_lu_reject(con)
check_disconnect(con)
+ check_ass_failure(con)
+ end
+
+ -- check assignment failures
+ function check_ass_failure(con)
+ local msgtype = bssmap_msgtype_field()
+ if not msgtype then
+ return
+ end
+
+ if tonumber(msgtype) == 0x03 then
+ con[4] = true
+ end
end
-- check if a DISCONNECT is normal