blob: 4c119c789ea5e4f41178886c1f635c6d39124dbe [file] [log] [blame]
Pau Espin Pedrol8d8529a2023-10-23 17:20:18 +02001module DIAMETER_rfc5447_Templates {
2
3/* (C) 2023 by sysmocom s.f.m.c. GmbH <info@sysmocom.de
4 * All rights reserved.
5 *
6 * Released under the terms of GNU General Public License, Version 2 or
7 * (at your option) any later version.
8 *
9 * SPDX-License-Identifier: GPL-2.0-or-later
10 */
11
12import from General_Types all;
13import from DIAMETER_Types all;
14import from DIAMETER_Templates all;
15import from Osmocom_Types all;
16import from Misc_Helpers all;
17
18/* 4.2.5. MIP6-Feature-Vector AVP */
19const uint64_t DIA_RFC5447_MIP6_Feature_Vector_MIP6_INTEGRATED := hex2int('0000000000000001'H);
20const uint64_t DIA_RFC5447_MIP6_Feature_Vector_LOCAL_HOME_AGENT_ASSIGNMENT := hex2int('0000000000000002'H);
21
22
23/* 4.2.5. MIP6-Feature-Vector AVP */
24template (value) GenericAVP ts_AVP_MIP6FeatureVector(template (value) MIPv6_NONE_MIP6_Feature_Vector inp) := {
25 avp := {
26 avp_header := ts_DIA_Hdr(c_AVP_Code_MIPv6_NONE_MIP6_Feature_Vector),
27 avp_data := {
28 avp_MIPv6_NONE_MIP6_Feature_Vector := inp
29 }
30 }
31}
32template (present) GenericAVP tr_AVP_MIP6FeatureVector(template (present) MIPv6_NONE_MIP6_Feature_Vector inp := ?) := {
33 avp := {
34 avp_header := tr_DIA_Hdr(c_AVP_Code_MIPv6_NONE_MIP6_Feature_Vector),
35 avp_data := {
36 avp_MIPv6_NONE_MIP6_Feature_Vector := inp
37 }
38 }
39}
40
41}