aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/contrib
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-10-20 19:08:49 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-10-20 19:21:07 +0200
commit8bde2ee61fcc04bbc76394f7115e333dcb966c81 (patch)
tree1bf3019d28352837b6d765c620867cc8731e5aab /openbsc/contrib
parentbc3d8dd89eba2a5a0eca4ec34b3a789e65edb0d7 (diff)
lua: Check for Cipher Mode Reject failures as well
Diffstat (limited to 'openbsc/contrib')
-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 ad1835269..34300b19b 100644
--- a/openbsc/contrib/a-link/sccp-split-by-con.lua
+++ b/openbsc/contrib/a-link/sccp-split-by-con.lua
@@ -26,6 +26,19 @@ do
check_lu_reject(con)
check_disconnect(con)
check_ass_failure(con)
+ check_cipher_reject(con)
+ end
+
+ -- cipher mode reject
+ function check_cipher_reject(con)
+ local msgtype = bssmap_msgtype_field()
+ if not msgtype then
+ return
+ end
+
+ if tonumber(msgtype) == 89 then
+ con[4] = true
+ end
end
-- check assignment failures