blob: ea3f1ec32f823e5e2a72af78d7624895100930ee [file] [log] [blame]
Brian Waters13d96012017-12-08 16:53:31 -06001/*
2* Copyright (c) 2017 Sprint
3*
4* Licensed under the Apache License, Version 2.0 (the "License");
5* you may not use this file except in compliance with the License.
6* You may obtain a copy of the License at
7*
8* http://www.apache.org/licenses/LICENSE-2.0
9*
10* Unless required by applicable law or agreed to in writing, software
11* distributed under the License is distributed on an "AS IS" BASIS,
12* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13* See the License for the specific language governing permissions and
14* limitations under the License.
15*/
16
17/****************
18 Generated By: fdtool enhancements to diafuzzer
19 License: same as freeDiameter
20****************/
21
22
23/*
24 * Dictionary definitions of objects specified in ts29215_avps (e10).
25 */
26#include <freeDiameter/extension.h>
27
28#define PROTO_VER "e10"
29#define GEN_DATE 1506697191.31
30
31const char *ts29215_avps_proto_ver = PROTO_VER;
32const double ts29215_avps_gen_date = GEN_DATE;
33
34/* The content of this file follows the same structure as dict_base_proto.c */
35
36#define CHECK_dict_new( _type, _data, _parent, _ref ) \
37{ \
38 int _ret = fd_dict_new( fd_g_config->cnf_dict, (_type), (_data), (_parent), (_ref) ); \
39 if ( _ret != 0 && _ret != EEXIST ) \
40 return _ret; \
41}
42
43#define CHECK_dict_search( _type, _criteria, _what, _result ) \
44 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, (_type), (_criteria), (_what), (_result), ENOENT) );
45
46struct local_rules_definition {
47 struct dict_avp_request avp_vendor_plus_name;
48 enum rule_position position;
49 int min;
50 int max;
51};
52
53#define RULE_ORDER( _position ) ((((_position) == RULE_FIXED_HEAD) || ((_position) == RULE_FIXED_TAIL)) ? 1 : 0 )
54
55/* Attention! This version of the macro uses AVP_BY_NAME_AND_VENDOR, in contrast to most other copies! */
56#define PARSE_loc_rules( _rulearray, _parent) { \
57 int __ar; \
58 for (__ar=0; __ar < sizeof(_rulearray) / sizeof((_rulearray)[0]); __ar++) { \
59 struct dict_rule_data __data = { NULL, \
60 (_rulearray)[__ar].position, \
61 0, \
62 (_rulearray)[__ar].min, \
63 (_rulearray)[__ar].max}; \
64 __data.rule_order = RULE_ORDER(__data.rule_position); \
65 CHECK_FCT( fd_dict_search( \
66 fd_g_config->cnf_dict, \
67 DICT_AVP, \
68 AVP_BY_NAME_AND_VENDOR, \
69 &(_rulearray)[__ar].avp_vendor_plus_name, \
70 &__data.rule_avp, 0 ) ); \
71 if ( !__data.rule_avp ) { \
72 TRACE_DEBUG(INFO, "AVP Not found: '%s'", (_rulearray)[__ar].avp_vendor_plus_name.avp_name); \
73 return ENOENT; \
74 } \
75 { \
76 int _ret = fd_dict_new( fd_g_config->cnf_dict, DICT_RULE, &(__data), (_parent), NULL ); \
77 if ( _ret != 0 && _ret != EEXIST ) { \
78 TRACE_DEBUG(INFO, "Error on rule with AVP '%s'", \
79 (_rulearray)[__ar].avp_vendor_plus_name.avp_name); \
80 return EINVAL; \
81 } \
82 } \
83 } \
84}
85
86#define CHECK_vendor_new( _data ) { \
87 struct dict_object * vendor_found; \
88 if (fd_dict_search(fd_g_config->cnf_dict,DICT_VENDOR,VENDOR_BY_ID,&_data.vendor_id,&vendor_found,ENOENT) == ENOENT) { \
89 CHECK_FCT(fd_dict_new(fd_g_config->cnf_dict, DICT_VENDOR, &_data, NULL, NULL)); \
90 } \
91}
92
93#define enumval_def_u32( _val_, _str_ ) \
94 { _str_, { .u32 = _val_ }}
95
96#define enumval_def_os( _len_, _val_, _str_ ) \
97 { _str_, { .os = { .data = (unsigned char *)_val_, .len = _len_ }}}
98
99
100static int dict_ts29215_avps_load_defs(char * conffile)
101{
102 TRACE_ENTRY("%p", conffile);
103 /* Application Section */
104 {
105 /* Create the vendors */ {
106 struct dict_vendor_data vendor_data = { 10415, "3GPP" };
107 CHECK_dict_new(DICT_VENDOR, &vendor_data, NULL, NULL)
108 }
109 }
110
111
112 /* AVP section */
113 {
114 struct dict_object * Address_type;
115 struct dict_object * UTF8String_type;
116 struct dict_object * DiameterIdentity_type;
117 struct dict_object * DiameterURI_type;
118 struct dict_object * Time_type;
119 struct dict_object * IPFilterRule_type;
120
121 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Address", &Address_type);
122 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "UTF8String", &UTF8String_type);
123 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterIdentity", &DiameterIdentity_type);
124 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterURI", &DiameterURI_type);
125 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Time", &Time_type);
126 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "IPFilterRule", &IPFilterRule_type);
127 /* DRA-Deployment */
128 {
129 struct dict_avp_data data = {
130 2206, /* Code */
131 10415, /* Vendor */
132 "DRA-Deployment", /* Name */
133 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
134 AVP_FLAG_VENDOR, /* Fixed flag values */
135 AVP_TYPE_INTEGER32 /* base type of data */
136 };
137 struct dict_object *type;
138 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(DRA-Deployment)", NULL, NULL, NULL };
139 struct dict_enumval_data t_1 = { "DRA_Deployed", { .i32=0 }};
140 /* Create the Enumerated type, and then the AVP */
141 CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
142 CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
143 CHECK_dict_new( DICT_AVP, &data, type, NULL);
144 };
145 /* Multiple-BBERF-Action */
146 {
147 struct dict_avp_data data = {
148 2204, /* Code */
149 10415, /* Vendor */
150 "Multiple-BBERF-Action", /* Name */
151 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
152 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
153 AVP_TYPE_INTEGER32 /* base type of data */
154 };
155 struct dict_object *type;
156 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Multiple-BBERF-Action)", NULL, NULL, NULL };
157 struct dict_enumval_data t_1 = { "ESTABLISHMENT", { .i32=0 }};
158 struct dict_enumval_data t_2 = { "TERMINATION", { .i32=1 }};
159 /* Create the Enumerated type, and then the AVP */
160 CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
161 CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
162 CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
163 CHECK_dict_new( DICT_AVP, &data, type, NULL);
164 };
165 /* Subsession-Id */
166 {
167 struct dict_avp_data data = {
168 2202, /* Code */
169 10415, /* Vendor */
170 "Subsession-Id", /* Name */
171 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
172 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
173 AVP_TYPE_UNSIGNED32 /* base type of data */
174 };
175 CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
176 };
177 /* Subsession-Operation */
178 {
179 struct dict_avp_data data = {
180 2203, /* Code */
181 10415, /* Vendor */
182 "Subsession-Operation", /* Name */
183 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
184 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
185 AVP_TYPE_INTEGER32 /* base type of data */
186 };
187 struct dict_object *type;
188 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Subsession-Operation)", NULL, NULL, NULL };
189 struct dict_enumval_data t_1 = { "TERMINATION", { .i32=0 }};
190 struct dict_enumval_data t_2 = { "ESTABLISHMENT", { .i32=1 }};
191 struct dict_enumval_data t_3 = { "MODIFICATION", { .i32=2 }};
192 /* Create the Enumerated type, and then the AVP */
193 CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
194 CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
195 CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
196 CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL);
197 CHECK_dict_new( DICT_AVP, &data, type, NULL);
198 };
199 /* DRA-Binding */
200 {
201 struct dict_avp_data data = {
202 2208, /* Code */
203 10415, /* Vendor */
204 "DRA-Binding", /* Name */
205 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
206 AVP_FLAG_VENDOR, /* Fixed flag values */
207 AVP_TYPE_INTEGER32 /* base type of data */
208 };
209 struct dict_object *type;
210 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(DRA-Binding)", NULL, NULL, NULL };
211 struct dict_enumval_data t_1 = { "DRA_BINDING_DELETION", { .i32=0 }};
212 /* Create the Enumerated type, and then the AVP */
213 CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
214 CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
215 CHECK_dict_new( DICT_AVP, &data, type, NULL);
216 };
217 /* PCRF-Address */
218 {
219 struct dict_avp_data data = {
220 2207, /* Code */
221 10415, /* Vendor */
222 "PCRF-Address", /* Name */
223 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
224 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
225 AVP_TYPE_OCTETSTRING /* base type of data */
226 };
227 CHECK_dict_new( DICT_AVP, &data, DiameterIdentity_type, NULL);
228 };
229 /* UE-Local-IPv6-Prefix */
230 {
231 struct dict_avp_data data = {
232 2205, /* Code */
233 10415, /* Vendor */
234 "UE-Local-IPv6-Prefix", /* Name */
235 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
236 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
237 AVP_TYPE_OCTETSTRING /* base type of data */
238 };
239 CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
240 };
241 /* Subsession-Enforcement-Info */
242 {
243 /* Grouped */
244 struct dict_object * avp;
245 struct dict_avp_data data = {
246 2201, /* Code */
247 10415, /* Vendor */
248 "Subsession-Enforcement-Info", /* Name */
249 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
250 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
251 AVP_TYPE_GROUPED /* base type of data */
252 };
253 CHECK_dict_new( DICT_AVP, &data , NULL, &avp);
254 }
255 /* Subsession-Decision-Info */
256 {
257 /* Grouped */
258 struct dict_object * avp;
259 struct dict_avp_data data = {
260 2200, /* Code */
261 10415, /* Vendor */
262 "Subsession-Decision-Info", /* Name */
263 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
264 AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
265 AVP_TYPE_GROUPED /* base type of data */
266 };
267 CHECK_dict_new( DICT_AVP, &data , NULL, &avp);
268 }
269
270
271 }
272
273 /* Commands section */
274 {
275
276 }
277
278 return 0;
279}
280
281static int dict_ts29215_avps_load_rules(char * conffile)
282{
283 /* Grouped AVP section */
284 {
285 /* Subsession-Enforcement-Info */
286 {
287 /* Grouped */
288 struct dict_object * avp;
289 struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Subsession-Enforcement-Info"};
290 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &avp_vendor_plus_name, &avp)
291 struct local_rules_definition rules[] =
292 {
293 { { .avp_vendor = 10415, .avp_name = "Subsession-Id"}, RULE_REQUIRED, -1, -1 },
294 { { .avp_vendor = 10415, .avp_name = "Subsession-Operation"}, RULE_OPTIONAL, -1, -1 },
295 { { .avp_vendor = 10415, .avp_name = "AN-GW-Address"}, RULE_OPTIONAL, 0, 2 },
296 { { .avp_vendor = 10415, .avp_name = "Bearer-Identifier"}, RULE_OPTIONAL, -1, -1 },
297 { { .avp_vendor = 10415, .avp_name = "Bearer-Operation"}, RULE_OPTIONAL, -1, -1 },
298 { { .avp_vendor = 10415, .avp_name = "Packet-Filter-Information"}, RULE_OPTIONAL, -1, -1 },
299 { { .avp_vendor = 10415, .avp_name = "Packet-Filter-Operation"}, RULE_OPTIONAL, -1, -1 },
300 { { .avp_vendor = 10415, .avp_name = "QoS-Information"}, RULE_OPTIONAL, -1, -1 },
301 { { .avp_vendor = 0, .avp_name = "Framed-IP-Address"}, RULE_OPTIONAL, -1, -1 },
302 { { .avp_vendor = 0, .avp_name = "Framed-IPv6-Prefix"}, RULE_OPTIONAL, -1, -1 },
303 { { .avp_vendor = 10415, .avp_name = "CoA-Information"}, RULE_OPTIONAL, -1, -1 },
304 { { .avp_vendor = 0, .avp_name = "Called-Station-Id"}, RULE_OPTIONAL, -1, -1 },
305 { { .avp_vendor = 10415, .avp_name = "PDN-Connection-ID"}, RULE_OPTIONAL, -1, -1 },
306 { { .avp_vendor = 10415, .avp_name = "Bearer-Usage"}, RULE_OPTIONAL, -1, -1 },
307 { { .avp_vendor = 10415, .avp_name = "TFT-Packet-Filter-Information"}, RULE_OPTIONAL, -1, -1 },
308 { { .avp_vendor = 10415, .avp_name = "Online"}, RULE_OPTIONAL, -1, -1 },
309 { { .avp_vendor = 10415, .avp_name = "Offline"}, RULE_OPTIONAL, -1, -1 },
310 { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 },
311 { { .avp_vendor = 0, .avp_name = "Experimental-Result-Code"}, RULE_OPTIONAL, -1, -1 },
312 { { .avp_vendor = 10415, .avp_name = "Charging-Rule-Report"}, RULE_OPTIONAL, -1, -1 },
313 { { .avp_vendor = 10415, .avp_name = "Credit-Management-Status"}, RULE_OPTIONAL, -1, -1 },
314 { { .avp_vendor = 10415, .avp_name = "QoS-Rule-Report"}, RULE_OPTIONAL, -1, -1 },
315 { { .avp_vendor = 10415, .avp_name = "Application-Detection-Information"}, RULE_OPTIONAL, -1, -1 },
316 { { .avp_vendor = 10415, .avp_name = "IP-CAN-Type"}, RULE_OPTIONAL, -1, -1 },
317 { { .avp_vendor = 10415, .avp_name = "RAT-Type"}, RULE_OPTIONAL, -1, -1 },
318 { { .avp_vendor = 10415, .avp_name = "3GPP-SGSN-MCC-MNC"}, RULE_OPTIONAL, -1, -1 },
319 { { .avp_vendor = 10415, .avp_name = "3GPP-SGSN-Address"}, RULE_OPTIONAL, -1, -1 },
320 { { .avp_vendor = 10415, .avp_name = "3GPP-SGSN-Ipv6-Address"}, RULE_OPTIONAL, -1, -1 },
321 { { .avp_vendor = 10415, .avp_name = "RAI"}, RULE_OPTIONAL, -1, -1 },
322 { { .avp_vendor = 10415, .avp_name = "3GPP-User-Location-Info"}, RULE_OPTIONAL, -1, -1 },
323 { { .avp_vendor = 5535, .avp_name = "3GPP2-BSID"}, RULE_OPTIONAL, -1, -1 },
324 { { .avp_vendor = 10415, .avp_name = "User-CSG-Information"}, RULE_OPTIONAL, -1, -1 },
325 { { .avp_vendor = 10415, .avp_name = "Default-EPS-Bearer-QoS"}, RULE_OPTIONAL, -1, -1 },
326 { { .avp_vendor = 10415, .avp_name = "Default-Access"}, RULE_OPTIONAL, -1, -1 },
327 { { .avp_vendor = 10415, .avp_name = "NBIFOM-Support"}, RULE_OPTIONAL, -1, -1 },
328 { { .avp_vendor = 10415, .avp_name = "NBIFOM-Mode"}, RULE_OPTIONAL, -1, -1 },
329 { { .avp_vendor = 10415, .avp_name = "Access-Availability-Change-Reason"}, RULE_OPTIONAL, -1, -1 },
330 { { .avp_vendor = 10415, .avp_name = "Network-Request-Support"}, RULE_OPTIONAL, -1, -1 },
331 { { .avp_vendor = 10415, .avp_name = "Routing-Rule-Install"}, RULE_OPTIONAL, -1, -1 },
332 { { .avp_vendor = 10415, .avp_name = "Routing-Rule-Remove"}, RULE_OPTIONAL, -1, -1 },
333 { { .avp_vendor = 10415, .avp_name = "User-Location-Info-Time"}, RULE_OPTIONAL, -1, -1 },
334 { { .avp_vendor = 13019, .avp_name = "Logical-Access-Id"}, RULE_OPTIONAL, -1, -1 },
335 { { .avp_vendor = 13019, .avp_name = "Physical-Access-Id"}, RULE_OPTIONAL, -1, -1 },
336 { { .avp_vendor = 10415, .avp_name = "Usage-Monitoring-Information"}, RULE_OPTIONAL, -1, -1 },
337 { { .avp_vendor = 10415, .avp_name = "Multiple-BBERF-Action"}, RULE_OPTIONAL, -1, -1 },
338 { { .avp_vendor = 10415, .avp_name = "Event-Trigger"}, RULE_OPTIONAL, -1, -1 },
339 { { .avp_vendor = 10415, .avp_name = "Access-Network-Charging-Address"}, RULE_OPTIONAL, -1, -1 },
340 { { .avp_vendor = 10415, .avp_name = "Access-Network-Charging-Identifier-Gx"}, RULE_OPTIONAL, -1, -1 },
341 { { .avp_vendor = 10415, .avp_name = "Session-Linking-Indicator"}, RULE_OPTIONAL, -1, -1 },
342 { { .avp_vendor = 10415, .avp_name = "HeNB-Local-IP-Address"}, RULE_OPTIONAL, -1, -1 },
343 { { .avp_vendor = 10415, .avp_name = "UE-Local-IP-Address"}, RULE_OPTIONAL, -1, -1 },
344 { { .avp_vendor = 10415, .avp_name = "UE-Local-IPv6-Prefix"}, RULE_OPTIONAL, -1, -1 },
345 { { .avp_vendor = 10415, .avp_name = "UDP-Source-Port"}, RULE_OPTIONAL, -1, -1 },
346 { { .avp_vendor = 10415, .avp_name = "AN-GW-Status"}, RULE_OPTIONAL, -1, -1 }
347 };
348 PARSE_loc_rules( rules, avp );
349 }
350 /* Subsession-Decision-Info */
351 {
352 /* Grouped */
353 struct dict_object * avp;
354 struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Subsession-Decision-Info"};
355 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &avp_vendor_plus_name, &avp)
356 struct local_rules_definition rules[] =
357 {
358 { { .avp_vendor = 10415, .avp_name = "Subsession-Id"}, RULE_REQUIRED, -1, -1 },
359 { { .avp_vendor = 10415, .avp_name = "AN-GW-Address"}, RULE_OPTIONAL, 0, 2 },
360 { { .avp_vendor = 0, .avp_name = "Result-Code"}, RULE_OPTIONAL, -1, -1 },
361 { { .avp_vendor = 0, .avp_name = "Experimental-Result-Code"}, RULE_OPTIONAL, -1, -1 },
362 { { .avp_vendor = 10415, .avp_name = "Charging-Rule-Remove"}, RULE_OPTIONAL, -1, -1 },
363 { { .avp_vendor = 10415, .avp_name = "Charging-Rule-Install"}, RULE_OPTIONAL, -1, -1 },
364 { { .avp_vendor = 10415, .avp_name = "Event-Report-Indication"}, RULE_OPTIONAL, -1, -1 },
365 { { .avp_vendor = 10415, .avp_name = "QoS-Rule-Install"}, RULE_OPTIONAL, -1, -1 },
366 { { .avp_vendor = 10415, .avp_name = "QoS-Rule-Remove"}, RULE_OPTIONAL, -1, -1 },
367 { { .avp_vendor = 10415, .avp_name = "Default-EPS-Bearer-QoS"}, RULE_OPTIONAL, -1, -1 },
368 { { .avp_vendor = 0, .avp_name = "Framed-IPv6-Prefix"}, RULE_OPTIONAL, -1, -1 },
369 { { .avp_vendor = 10415, .avp_name = "Usage-Monitoring-Information"}, RULE_OPTIONAL, -1, -1 },
370 { { .avp_vendor = 10415, .avp_name = "Session-Release-Cause"}, RULE_OPTIONAL, -1, -1 },
371 { { .avp_vendor = 10415, .avp_name = "Bearer-Control-Mode"}, RULE_OPTIONAL, -1, -1 },
372 { { .avp_vendor = 10415, .avp_name = "Event-Trigger"}, RULE_OPTIONAL, -1, -1 },
373 { { .avp_vendor = 10415, .avp_name = "Revalidation-Time"}, RULE_OPTIONAL, -1, -1 },
374 { { .avp_vendor = 10415, .avp_name = "Default-Access"}, RULE_OPTIONAL, -1, -1 },
375 { { .avp_vendor = 10415, .avp_name = "NBIFOM-Support"}, RULE_OPTIONAL, -1, -1 },
376 { { .avp_vendor = 10415, .avp_name = "NBIFOM-Mode"}, RULE_OPTIONAL, -1, -1 },
377 { { .avp_vendor = 10415, .avp_name = "RAN-Rule-Support"}, RULE_OPTIONAL, -1, -1 },
378 { { .avp_vendor = 10415, .avp_name = "Routing-Rule-Report"}, RULE_OPTIONAL, -1, -1 },
379 { { .avp_vendor = 10415, .avp_name = "Removal-Of-Access"}, RULE_OPTIONAL, -1, -1 },
380 { { .avp_vendor = 10415, .avp_name = "IP-CAN-Type"}, RULE_OPTIONAL, -1, -1 },
381 { { .avp_vendor = 10415, .avp_name = "Online"}, RULE_OPTIONAL, -1, -1 },
382 { { .avp_vendor = 10415, .avp_name = "Offline"}, RULE_OPTIONAL, -1, -1 },
383 { { .avp_vendor = 10415, .avp_name = "QoS-Information"}, RULE_OPTIONAL, -1, -1 }
384 };
385 PARSE_loc_rules( rules, avp );
386 }
387
388 }
389
390 /* Commands section */
391 {
392
393 }
394
395 LOG_D( "Extension 'Dictionary definitions for ts29215_avps (e10)' initialized");
396 return 0;
397}
398
399int dict_entry(char * conffile)
400{
401 dict_ts29215_avps_load_defs(conffile);
402 return dict_ts29215_avps_load_rules(conffile);
403}
404
405const char* dict_ts29215_avps_proto_ver(char * conffile) {
406 return ts29215_avps_proto_ver;
407}
408
409const double dict_ts29215_avps_gen_ts(char * conffile) {
410 return ts29215_avps_gen_date;
411}
412
413EXTENSION_ENTRY2("dict_ts29215_avps", dict_ts29215_avps_load_defs, dict_ts29215_avps_load_rules, "dict_ts32299_avps", "dict_ts29212_avps", "dict_ts29214_avps", "dict_ts29229_avps", "dict_ts29061_avps", "dict_rfc4006bis_avps", "dict_draftload_avps", "dict_rfc7683_avps", "dict_rfc7155_avps", "dict_etsi283034_avps", "dict_3gpp2_avps", "dict_rfc7944_avps");
414
415
416