Clarify GPRS ciphering direction
Add spec reference and set explicit values for enum representing
direction parameter for GPRS encryption.
Change-Id: Iaf1b13da2e889d55cc9dd7516710104dba48c992
Related: OS#1582
diff --git a/include/osmocom/crypt/gprs_cipher.h b/include/osmocom/crypt/gprs_cipher.h
index 9d98f88..2639293 100644
--- a/include/osmocom/crypt/gprs_cipher.h
+++ b/include/osmocom/crypt/gprs_cipher.h
@@ -14,9 +14,10 @@
_GPRS_ALGO_NUM
};
+/* 3GPP TS 04.64 Table A.1: */
enum gprs_cipher_direction {
- GPRS_CIPH_MS2SGSN,
- GPRS_CIPH_SGSN2MS,
+ GPRS_CIPH_MS2SGSN = 0,
+ GPRS_CIPH_SGSN2MS = 1,
};
extern const struct value_string gprs_cipher_names[];