aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gsm0808
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2018-04-20 12:23:45 +0200
committerHarald Welte <laforge@gnumonks.org>2018-04-23 08:42:00 +0000
commit178bf7a409209d3bb39727ac92c8ce60ee23c283 (patch)
tree31f8a17f0af632dd4bf54e119a49d786ba0c9606 /tests/gsm0808
parent9a4286b7098ee54669cc30e05efc0310786c6723 (diff)
gsm0808_test: silence deprecation: use gsm0808_create_layer3_2()
Diffstat (limited to 'tests/gsm0808')
-rw-r--r--tests/gsm0808/gsm0808_test.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c
index e111fe67..ae138be8 100644
--- a/tests/gsm0808/gsm0808_test.c
+++ b/tests/gsm0808/gsm0808_test.c
@@ -71,13 +71,23 @@ static void test_create_layer3(void)
0x00, 0x0e, 0x57, 0x05, 0x08, 0x00, 0x77, 0x62,
0x83, 0x33, 0x66, 0x44, 0x88, 0x17, 0x01, 0x23 };
struct msgb *msg, *in_msg;
+ struct osmo_cell_global_id cgi = {
+ .lai = {
+ .plmn = {
+ .mcc = 0x2244,
+ .mnc = 0x1122,
+ },
+ .lac = 0x3366,
+ },
+ .cell_identity = 0x4488,
+ };
printf("Testing creating Layer3\n");
in_msg = msgb_alloc_headroom(512, 128, "foo");
in_msg->l3h = in_msg->data;
msgb_v_put(in_msg, 0x23);
- msg = gsm0808_create_layer3(in_msg, 0x1122, 0x2244, 0x3366, 0x4488);
+ msg = gsm0808_create_layer3_2(in_msg, &cgi, NULL);
VERIFY(msg, res, ARRAY_SIZE(res));
msgb_free(msg);
msgb_free(in_msg);