summaryrefslogtreecommitdiffstats
path: root/include/osmocom/gsm/gsm0480.h
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2018-06-11 03:51:11 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2018-06-11 23:45:48 +0700
commit52e44121dbb6ba278b0fc44a05dc23330457b08e (patch)
tree8c4eef51c1af5b0f4bf233643d73a3a107c16f54 /include/osmocom/gsm/gsm0480.h
parent11eb4b5add41ec6722fdba2f2023e87543e0507b (diff)
gsm/gsm0480.c: introduce gsm0480_extract_ie_by_tag()
In some cases, there is no need to parse the whole message, e.g. during the conversion from DTAP to GSUP/MAP. This function can be used to extract given IE from a message. Change-Id: I3989d061903352473305f80712f1a1560d05df3d
Diffstat (limited to 'include/osmocom/gsm/gsm0480.h')
-rw-r--r--include/osmocom/gsm/gsm0480.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gsm/gsm0480.h b/include/osmocom/gsm/gsm0480.h
index b0b6aa29..b31f8a71 100644
--- a/include/osmocom/gsm/gsm0480.h
+++ b/include/osmocom/gsm/gsm0480.h
@@ -91,6 +91,8 @@ struct ss_request {
uint8_t invoke_id;
};
+int gsm0480_extract_ie_by_tag(const struct gsm48_hdr *hdr, uint16_t msg_len,
+ uint8_t **ie, uint16_t *ie_len, uint8_t ie_tag);
int gsm0480_decode_ss_request(const struct gsm48_hdr *hdr, uint16_t len,
struct ss_request *request);