open5gs/tests/common/gmm-build.h

56 lines
2.1 KiB
C
Raw Permalink Normal View History

2020-05-25 16:15:22 +00:00
/*
* Copyright (C) 2019,2020 by Sukchan Lee <acetcom@gmail.com>
*
* This file is part of Open5GS.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
2020-06-04 18:12:05 +00:00
#ifndef TEST_GMM_BUILD_H
#define TEST_GMM_BUILD_H
2020-05-25 16:15:22 +00:00
#ifdef __cplusplus
extern "C" {
#endif
2020-06-25 04:37:29 +00:00
ogs_pkbuf_t *testgmm_build_registration_request(
2022-01-08 03:26:23 +00:00
test_ue_t *test_ue, ogs_pkbuf_t *nasbuf,
bool integrity_protected, bool ciphered);
2020-06-25 04:37:29 +00:00
ogs_pkbuf_t *testgmm_build_registration_complete(test_ue_t *test_ue);
ogs_pkbuf_t *testgmm_build_service_request(
2022-01-08 03:26:23 +00:00
test_ue_t *test_ue, uint8_t service_type, ogs_pkbuf_t *nasbuf,
bool integrity_protected, bool ciphered);
2020-06-25 04:37:29 +00:00
ogs_pkbuf_t *testgmm_build_de_registration_request(
2022-01-08 03:26:23 +00:00
test_ue_t *test_ue, bool switch_off,
bool integrity_protected, bool ciphered);
2020-06-24 04:33:10 +00:00
2020-06-22 03:07:14 +00:00
ogs_pkbuf_t *testgmm_build_identity_response(test_ue_t *test_ue);
2020-06-04 18:12:05 +00:00
ogs_pkbuf_t *testgmm_build_authentication_response(test_ue_t *test_ue);
2020-06-22 03:07:14 +00:00
ogs_pkbuf_t *testgmm_build_authentication_failure(
2020-06-26 02:44:28 +00:00
test_ue_t *test_ue, ogs_nas_5gmm_cause_t gmm_cause, uint64_t sqn_ms);
2020-06-04 18:12:05 +00:00
ogs_pkbuf_t *testgmm_build_security_mode_complete(
test_ue_t *test_ue, ogs_pkbuf_t *nasbuf);
2020-06-17 05:22:28 +00:00
ogs_pkbuf_t *testgmm_build_configuration_update_complete(test_ue_t *test_ue);
ogs_pkbuf_t *testgmm_build_ul_nas_transport(test_sess_t *test_sess,
uint8_t payload_type, ogs_pkbuf_t *payload);
2020-06-22 03:07:14 +00:00
ogs_pkbuf_t *testgmm_build_gmm_status(
test_ue_t *test_ue, ogs_nas_5gmm_cause_t gmm_cause);
2020-05-25 16:15:22 +00:00
#ifdef __cplusplus
}
#endif
2020-06-04 18:12:05 +00:00
#endif /* TEST_GMM_BUILD_H */