aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/gprs/oap_messages.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-04-25 15:14:01 +0200
committerHarald Welte <laforge@gnumonks.org>2016-04-29 13:10:37 +0200
commit842674b8b3d245a2eecb352eb89609ed44cb0832 (patch)
tree256d66fa38a7abfb7a8bb14a1ad504c4dc70f239 /openbsc/src/gprs/oap_messages.c
parent28903a99eae60cee616901fd3863960b1321ff54 (diff)
rename gprs_shift_*() to osmo_shift_*()
This rename is the first step of moving the associated functions into libosmocore. Also, rename gprs_match_* to osmo_match_shift_* to indicate that it is not just matching the TLV, but also shifting the data portion.
Diffstat (limited to 'openbsc/src/gprs/oap_messages.c')
-rw-r--r--openbsc/src/gprs/oap_messages.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/oap_messages.c b/openbsc/src/gprs/oap_messages.c
index eb520532a..49b54e439 100644
--- a/openbsc/src/gprs/oap_messages.c
+++ b/openbsc/src/gprs/oap_messages.c
@@ -48,7 +48,7 @@ int oap_decode(const uint8_t *const_data, size_t data_len,
memset(oap_msg, 0, sizeof(*oap_msg));
/* message type */
- rc = gprs_shift_v_fixed(&data, &data_len, 1, &value);
+ rc = osmo_shift_v_fixed(&data, &data_len, 1, &value);
if (rc < 0)
return -GMM_CAUSE_INV_MAND_INFO;
oap_msg->message_type = decode_big_endian(value, 1);
@@ -57,7 +57,7 @@ int oap_decode(const uint8_t *const_data, size_t data_len,
while (data_len > 0) {
enum oap_iei iei;
- rc = gprs_shift_tlv(&data, &data_len, &tag, &value, &value_len);
+ rc = osmo_shift_tlv(&data, &data_len, &tag, &value, &value_len);
if (rc < 0)
return -GMM_CAUSE_PROTO_ERR_UNSPEC;