blob: 2df5573e79d6e9293171c3d6765f70a8845eaeed [file] [log] [blame]
Pau Espin Pedrol009ab6f2024-03-05 13:25:19 +01001module 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
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.1. MIP6-Agent-Info AVP */
19template (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
25template (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}