Pau Espin Pedrol | 8d8529a | 2023-10-23 17:20:18 +0200 | [diff] [blame] | 1 | module 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 | |
| 12 | import from General_Types all; |
| 13 | import from DIAMETER_Types all; |
| 14 | import from DIAMETER_Templates all; |
| 15 | import from Osmocom_Types all; |
| 16 | import from Misc_Helpers all; |
| 17 | |
| 18 | /* 4.2.5. MIP6-Feature-Vector AVP */ |
| 19 | const uint64_t DIA_RFC5447_MIP6_Feature_Vector_MIP6_INTEGRATED := hex2int('0000000000000001'H); |
| 20 | const uint64_t DIA_RFC5447_MIP6_Feature_Vector_LOCAL_HOME_AGENT_ASSIGNMENT := hex2int('0000000000000002'H); |
| 21 | |
| 22 | |
| 23 | /* 4.2.5. MIP6-Feature-Vector AVP */ |
| 24 | template (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 | } |
| 32 | template (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 | } |