aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <msuraev@sysmocom.de>2016-11-08 16:08:29 +0100
committerMax <msuraev@sysmocom.de>2016-11-08 16:27:47 +0100
commitc757272443e967ed7fe8e40cd9cae3986be0dd4c (patch)
tree54ff93001efefdafecafc5a20f8c040c74c9c742
parent388a91cbd1671e2e2b2b3f1203c94923b0d1b9c6 (diff)
dtx_check.gawk: add check for repetitive SID FIRST
-rwxr-xr-xcontrib/dtx_check.gawk4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/dtx_check.gawk b/contrib/dtx_check.gawk
index 3a3fa26..9a3ddcf 100755
--- a/contrib/dtx_check.gawk
+++ b/contrib/dtx_check.gawk
@@ -40,6 +40,10 @@ BEGIN {
CHK = "FAIL: " TYPE " followed by " $2 " instead of P2."
ERR++
}
+ if ("FIRST" == $2 && "FIRST" == TYPE) {
+ CHK = "FAIL: multiple SID FIRST in a row."
+ ERR++
+ }
if ("OK" == CHK && "ONSET" != $2) { # check inter-SID distances:
if ("UPDATE" == TYPE) {
if (DELTA > U_MAX) {