Pau Espin Pedrol | 009ab6f | 2024-03-05 13:25:19 +0100 | [diff] [blame] | 1 | module DIAMETER_rfc4004_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.1. MIP6-Agent-Info AVP */ |
| 19 | template (value) MIPv4_NONE_MIP_Home_Agent_Address ts_AVP_Home_Agent_Address(template (value) AddressType addr_type, |
| 20 | template (value) octetstring addr_data) := { |
| 21 | address_type := addr_type, |
| 22 | address_data := addr_data |
| 23 | } |
| 24 | |
| 25 | template (value) GenericAVP ts_AVP_MIPHomeAgentAddress(template (value) MIPv4_NONE_MIP_Home_Agent_Address addr) := { |
| 26 | avp := { |
| 27 | avp_header := ts_DIA_Hdr(c_AVP_Code_MIPv4_NONE_MIP_Home_Agent_Address), |
| 28 | avp_data := { |
| 29 | avp_MIPv4_NONE_MIP_Home_Agent_Address := addr |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | } |