Brian Waters | 13d9601 | 2017-12-08 16:53:31 -0600 | [diff] [blame^] | 1 | /* |
| 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 ts29061_avps (e30). |
| 25 | */ |
| 26 | #include <freeDiameter/extension.h> |
| 27 | |
| 28 | #define PROTO_VER "e30" |
| 29 | #define GEN_DATE 1506697184.9 |
| 30 | |
| 31 | const char *ts29061_avps_proto_ver = PROTO_VER; |
| 32 | const double ts29061_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 | |
| 46 | struct 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 | |
| 100 | static int dict_ts29061_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 | /* 3GPP-IMSI */ |
| 128 | { |
| 129 | struct dict_avp_data data = { |
| 130 | 1, /* Code */ |
| 131 | 10415, /* Vendor */ |
| 132 | "3GPP-IMSI", /* Name */ |
| 133 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 134 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 135 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 136 | }; |
| 137 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 138 | }; |
| 139 | /* 3GPP-Charging-Id */ |
| 140 | { |
| 141 | struct dict_avp_data data = { |
| 142 | 2, /* Code */ |
| 143 | 10415, /* Vendor */ |
| 144 | "3GPP-Charging-Id", /* Name */ |
| 145 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 146 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 147 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 148 | }; |
| 149 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 150 | }; |
| 151 | /* 3GPP-PDP-Type */ |
| 152 | { |
| 153 | struct dict_avp_data data = { |
| 154 | 3, /* Code */ |
| 155 | 10415, /* Vendor */ |
| 156 | "3GPP-PDP-Type", /* Name */ |
| 157 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 158 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 159 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 160 | }; |
| 161 | struct dict_object *type; |
| 162 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(3GPP-PDP-Type)", NULL, NULL, NULL }; |
| 163 | struct dict_enumval_data t_1 = { "Ipv4", { .i32=0 }}; |
| 164 | struct dict_enumval_data t_2 = { "PPP", { .i32=1 }}; |
| 165 | struct dict_enumval_data t_3 = { "Ipv6", { .i32=2 }}; |
| 166 | struct dict_enumval_data t_4 = { "Ipv4v6", { .i32=3 }}; |
| 167 | struct dict_enumval_data t_5 = { "Non-IP", { .i32=4 }}; |
| 168 | /* Create the Enumerated type, and then the AVP */ |
| 169 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 170 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 171 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 172 | CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL); |
| 173 | CHECK_dict_new( DICT_ENUMVAL, &t_4, type, NULL); |
| 174 | CHECK_dict_new( DICT_ENUMVAL, &t_5, type, NULL); |
| 175 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 176 | }; |
| 177 | /* 3GPP-CG-Address */ |
| 178 | { |
| 179 | struct dict_avp_data data = { |
| 180 | 4, /* Code */ |
| 181 | 10415, /* Vendor */ |
| 182 | "3GPP-CG-Address", /* Name */ |
| 183 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 184 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 185 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 186 | }; |
| 187 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 188 | }; |
| 189 | /* 3GPP-GPRS-Negotiated-QoS-Profile */ |
| 190 | { |
| 191 | struct dict_avp_data data = { |
| 192 | 5, /* Code */ |
| 193 | 10415, /* Vendor */ |
| 194 | "3GPP-GPRS-Negotiated-QoS-Profile", /* Name */ |
| 195 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 196 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 197 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 198 | }; |
| 199 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 200 | }; |
| 201 | /* 3GPP-SGSN-Address */ |
| 202 | { |
| 203 | struct dict_avp_data data = { |
| 204 | 6, /* Code */ |
| 205 | 10415, /* Vendor */ |
| 206 | "3GPP-SGSN-Address", /* Name */ |
| 207 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 208 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 209 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 210 | }; |
| 211 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 212 | }; |
| 213 | /* 3GPP-GGSN-Address */ |
| 214 | { |
| 215 | struct dict_avp_data data = { |
| 216 | 7, /* Code */ |
| 217 | 10415, /* Vendor */ |
| 218 | "3GPP-GGSN-Address", /* Name */ |
| 219 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 220 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 221 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 222 | }; |
| 223 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 224 | }; |
| 225 | /* 3GPP-IMSI-MCC-MNC */ |
| 226 | { |
| 227 | struct dict_avp_data data = { |
| 228 | 8, /* Code */ |
| 229 | 10415, /* Vendor */ |
| 230 | "3GPP-IMSI-MCC-MNC", /* Name */ |
| 231 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 232 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 233 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 234 | }; |
| 235 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 236 | }; |
| 237 | /* 3GPP-GGSN-MCC-MNC */ |
| 238 | { |
| 239 | struct dict_avp_data data = { |
| 240 | 9, /* Code */ |
| 241 | 10415, /* Vendor */ |
| 242 | "3GPP-GGSN-MCC-MNC", /* Name */ |
| 243 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 244 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 245 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 246 | }; |
| 247 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 248 | }; |
| 249 | /* 3GPP-NSAPI */ |
| 250 | { |
| 251 | struct dict_avp_data data = { |
| 252 | 10, /* Code */ |
| 253 | 10415, /* Vendor */ |
| 254 | "3GPP-NSAPI", /* Name */ |
| 255 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 256 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 257 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 258 | }; |
| 259 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 260 | }; |
| 261 | /* 3GPP-Selection-Mode */ |
| 262 | { |
| 263 | struct dict_avp_data data = { |
| 264 | 12, /* Code */ |
| 265 | 10415, /* Vendor */ |
| 266 | "3GPP-Selection-Mode", /* Name */ |
| 267 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 268 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 269 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 270 | }; |
| 271 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 272 | }; |
| 273 | /* 3GPP-Charging-Characteristics */ |
| 274 | { |
| 275 | struct dict_avp_data data = { |
| 276 | 13, /* Code */ |
| 277 | 10415, /* Vendor */ |
| 278 | "3GPP-Charging-Characteristics", /* Name */ |
| 279 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 280 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 281 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 282 | }; |
| 283 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 284 | }; |
| 285 | /* 3GPP-CG-Ipv6-Address */ |
| 286 | { |
| 287 | struct dict_avp_data data = { |
| 288 | 14, /* Code */ |
| 289 | 10415, /* Vendor */ |
| 290 | "3GPP-CG-Ipv6-Address", /* Name */ |
| 291 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 292 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 293 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 294 | }; |
| 295 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 296 | }; |
| 297 | /* 3GPP-SGSN-Ipv6-Address */ |
| 298 | { |
| 299 | struct dict_avp_data data = { |
| 300 | 15, /* Code */ |
| 301 | 10415, /* Vendor */ |
| 302 | "3GPP-SGSN-Ipv6-Address", /* Name */ |
| 303 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 304 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 305 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 306 | }; |
| 307 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 308 | }; |
| 309 | /* 3GPP-GGSN-Ipv6-Address */ |
| 310 | { |
| 311 | struct dict_avp_data data = { |
| 312 | 16, /* Code */ |
| 313 | 10415, /* Vendor */ |
| 314 | "3GPP-GGSN-Ipv6-Address", /* Name */ |
| 315 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 316 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 317 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 318 | }; |
| 319 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 320 | }; |
| 321 | /* 3GPP-Ipv6-DNS-Servers */ |
| 322 | { |
| 323 | struct dict_avp_data data = { |
| 324 | 17, /* Code */ |
| 325 | 10415, /* Vendor */ |
| 326 | "3GPP-Ipv6-DNS-Servers", /* Name */ |
| 327 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 328 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 329 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 330 | }; |
| 331 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 332 | }; |
| 333 | /* 3GPP-SGSN-MCC-MNC */ |
| 334 | { |
| 335 | struct dict_avp_data data = { |
| 336 | 18, /* Code */ |
| 337 | 10415, /* Vendor */ |
| 338 | "3GPP-SGSN-MCC-MNC", /* Name */ |
| 339 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 340 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 341 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 342 | }; |
| 343 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 344 | }; |
| 345 | /* 3GPP-IMEISV */ |
| 346 | { |
| 347 | struct dict_avp_data data = { |
| 348 | 20, /* Code */ |
| 349 | 10415, /* Vendor */ |
| 350 | "3GPP-IMEISV", /* Name */ |
| 351 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 352 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 353 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 354 | }; |
| 355 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 356 | }; |
| 357 | /* 3GPP-RAT-Type */ |
| 358 | { |
| 359 | struct dict_avp_data data = { |
| 360 | 21, /* Code */ |
| 361 | 10415, /* Vendor */ |
| 362 | "3GPP-RAT-Type", /* Name */ |
| 363 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 364 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 365 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 366 | }; |
| 367 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 368 | }; |
| 369 | /* 3GPP-User-Location-Info */ |
| 370 | { |
| 371 | struct dict_avp_data data = { |
| 372 | 22, /* Code */ |
| 373 | 10415, /* Vendor */ |
| 374 | "3GPP-User-Location-Info", /* Name */ |
| 375 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 376 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 377 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 378 | }; |
| 379 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 380 | }; |
| 381 | /* 3GPP-MS-TimeZone */ |
| 382 | { |
| 383 | struct dict_avp_data data = { |
| 384 | 23, /* Code */ |
| 385 | 10415, /* Vendor */ |
| 386 | "3GPP-MS-TimeZone", /* Name */ |
| 387 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 388 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 389 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 390 | }; |
| 391 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 392 | }; |
| 393 | /* 3GPP-CAMEL-Charging-Info */ |
| 394 | { |
| 395 | struct dict_avp_data data = { |
| 396 | 24, /* Code */ |
| 397 | 10415, /* Vendor */ |
| 398 | "3GPP-CAMEL-Charging-Info", /* Name */ |
| 399 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 400 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 401 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 402 | }; |
| 403 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 404 | }; |
| 405 | /* 3GPP-Packet-Filter */ |
| 406 | { |
| 407 | struct dict_avp_data data = { |
| 408 | 25, /* Code */ |
| 409 | 10415, /* Vendor */ |
| 410 | "3GPP-Packet-Filter", /* Name */ |
| 411 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 412 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 413 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 414 | }; |
| 415 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 416 | }; |
| 417 | /* 3GPP-Negotiated-DSCP */ |
| 418 | { |
| 419 | struct dict_avp_data data = { |
| 420 | 26, /* Code */ |
| 421 | 10415, /* Vendor */ |
| 422 | "3GPP-Negotiated-DSCP", /* Name */ |
| 423 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 424 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 425 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 426 | }; |
| 427 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 428 | }; |
| 429 | /* 3GPP-Allocate-IP-Type */ |
| 430 | { |
| 431 | struct dict_avp_data data = { |
| 432 | 27, /* Code */ |
| 433 | 10415, /* Vendor */ |
| 434 | "3GPP-Allocate-IP-Type", /* Name */ |
| 435 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 436 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 437 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 438 | }; |
| 439 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 440 | }; |
| 441 | /* TWAN-Identifier */ |
| 442 | { |
| 443 | struct dict_avp_data data = { |
| 444 | 29, /* Code */ |
| 445 | 10415, /* Vendor */ |
| 446 | "TWAN-Identifier", /* Name */ |
| 447 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 448 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 449 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 450 | }; |
| 451 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 452 | }; |
| 453 | /* 3GPP-User-Location-Info-Time */ |
| 454 | { |
| 455 | struct dict_avp_data data = { |
| 456 | 30, /* Code */ |
| 457 | 10415, /* Vendor */ |
| 458 | "3GPP-User-Location-Info-Time", /* Name */ |
| 459 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 460 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 461 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 462 | }; |
| 463 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 464 | }; |
| 465 | /* TMGI */ |
| 466 | { |
| 467 | struct dict_avp_data data = { |
| 468 | 900, /* Code */ |
| 469 | 10415, /* Vendor */ |
| 470 | "TMGI", /* Name */ |
| 471 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 472 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 473 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 474 | }; |
| 475 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 476 | }; |
| 477 | /* Required-MBMS-Bearer-Capabilities */ |
| 478 | { |
| 479 | struct dict_avp_data data = { |
| 480 | 901, /* Code */ |
| 481 | 10415, /* Vendor */ |
| 482 | "Required-MBMS-Bearer-Capabilities", /* Name */ |
| 483 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 484 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 485 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 486 | }; |
| 487 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 488 | }; |
| 489 | /* MBMS-StartStop-Indication */ |
| 490 | { |
| 491 | struct dict_avp_data data = { |
| 492 | 902, /* Code */ |
| 493 | 10415, /* Vendor */ |
| 494 | "MBMS-StartStop-Indication", /* Name */ |
| 495 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 496 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 497 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 498 | }; |
| 499 | struct dict_object *type; |
| 500 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-StartStop-Indication)", NULL, NULL, NULL }; |
| 501 | struct dict_enumval_data t_1 = { "START", { .i32=0 }}; |
| 502 | struct dict_enumval_data t_2 = { "STOP", { .i32=1 }}; |
| 503 | struct dict_enumval_data t_3 = { "UPDATE", { .i32=2 }}; |
| 504 | struct dict_enumval_data t_4 = { "HEARTBEAT", { .i32=3 }}; |
| 505 | /* Create the Enumerated type, and then the AVP */ |
| 506 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 507 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 508 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 509 | CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL); |
| 510 | CHECK_dict_new( DICT_ENUMVAL, &t_4, type, NULL); |
| 511 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 512 | }; |
| 513 | /* MBMS-Service-Area */ |
| 514 | { |
| 515 | struct dict_avp_data data = { |
| 516 | 903, /* Code */ |
| 517 | 10415, /* Vendor */ |
| 518 | "MBMS-Service-Area", /* Name */ |
| 519 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 520 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 521 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 522 | }; |
| 523 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 524 | }; |
| 525 | /* MBMS-Session-Duration */ |
| 526 | { |
| 527 | struct dict_avp_data data = { |
| 528 | 904, /* Code */ |
| 529 | 10415, /* Vendor */ |
| 530 | "MBMS-Session-Duration", /* Name */ |
| 531 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 532 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 533 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 534 | }; |
| 535 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 536 | }; |
| 537 | /* Alternative-APN */ |
| 538 | { |
| 539 | struct dict_avp_data data = { |
| 540 | 905, /* Code */ |
| 541 | 10415, /* Vendor */ |
| 542 | "Alternative-APN", /* Name */ |
| 543 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 544 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 545 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 546 | }; |
| 547 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 548 | }; |
| 549 | /* MBMS-Service-Type */ |
| 550 | { |
| 551 | struct dict_avp_data data = { |
| 552 | 906, /* Code */ |
| 553 | 10415, /* Vendor */ |
| 554 | "MBMS-Service-Type", /* Name */ |
| 555 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 556 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 557 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 558 | }; |
| 559 | struct dict_object *type; |
| 560 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-Service-Type)", NULL, NULL, NULL }; |
| 561 | struct dict_enumval_data t_1 = { "MULTICAST", { .i32=0 }}; |
| 562 | struct dict_enumval_data t_2 = { "BROADCAST", { .i32=1 }}; |
| 563 | /* Create the Enumerated type, and then the AVP */ |
| 564 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 565 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 566 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 567 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 568 | }; |
| 569 | /* MBMS-2G-3G-Indicator */ |
| 570 | { |
| 571 | struct dict_avp_data data = { |
| 572 | 907, /* Code */ |
| 573 | 10415, /* Vendor */ |
| 574 | "MBMS-2G-3G-Indicator", /* Name */ |
| 575 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 576 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 577 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 578 | }; |
| 579 | struct dict_object *type; |
| 580 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-2G-3G-Indicator)", NULL, NULL, NULL }; |
| 581 | struct dict_enumval_data t_1 = { "G_AND_3G", { .i32=2 }}; |
| 582 | /* Create the Enumerated type, and then the AVP */ |
| 583 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 584 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 585 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 586 | }; |
| 587 | /* MBMS-Session-Identity */ |
| 588 | { |
| 589 | struct dict_avp_data data = { |
| 590 | 908, /* Code */ |
| 591 | 10415, /* Vendor */ |
| 592 | "MBMS-Session-Identity", /* Name */ |
| 593 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 594 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 595 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 596 | }; |
| 597 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 598 | }; |
| 599 | /* RAI */ |
| 600 | { |
| 601 | struct dict_avp_data data = { |
| 602 | 909, /* Code */ |
| 603 | 10415, /* Vendor */ |
| 604 | "RAI", /* Name */ |
| 605 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 606 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 607 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 608 | }; |
| 609 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 610 | }; |
| 611 | /* Additional-MBMS-Trace-Info */ |
| 612 | { |
| 613 | struct dict_avp_data data = { |
| 614 | 910, /* Code */ |
| 615 | 10415, /* Vendor */ |
| 616 | "Additional-MBMS-Trace-Info", /* Name */ |
| 617 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 618 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 619 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 620 | }; |
| 621 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 622 | }; |
| 623 | /* MBMS-Time-To-Data-Transfer */ |
| 624 | { |
| 625 | struct dict_avp_data data = { |
| 626 | 911, /* Code */ |
| 627 | 10415, /* Vendor */ |
| 628 | "MBMS-Time-To-Data-Transfer", /* Name */ |
| 629 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 630 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 631 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 632 | }; |
| 633 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 634 | }; |
| 635 | /* MBMS-Session-Repetition-Number */ |
| 636 | { |
| 637 | struct dict_avp_data data = { |
| 638 | 912, /* Code */ |
| 639 | 10415, /* Vendor */ |
| 640 | "MBMS-Session-Repetition-Number", /* Name */ |
| 641 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 642 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 643 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 644 | }; |
| 645 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 646 | }; |
| 647 | /* MBMS-Required-QoS */ |
| 648 | { |
| 649 | struct dict_avp_data data = { |
| 650 | 913, /* Code */ |
| 651 | 10415, /* Vendor */ |
| 652 | "MBMS-Required-QoS", /* Name */ |
| 653 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 654 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 655 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 656 | }; |
| 657 | CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL); |
| 658 | }; |
| 659 | /* MBMS-Counting-Information */ |
| 660 | { |
| 661 | struct dict_avp_data data = { |
| 662 | 914, /* Code */ |
| 663 | 10415, /* Vendor */ |
| 664 | "MBMS-Counting-Information", /* Name */ |
| 665 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 666 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 667 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 668 | }; |
| 669 | struct dict_object *type; |
| 670 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-Counting-Information)", NULL, NULL, NULL }; |
| 671 | struct dict_enumval_data t_1 = { "COUNTING_NOT_APPLICABLE", { .i32=0 }}; |
| 672 | struct dict_enumval_data t_2 = { "COUNTING_APPLICABLE", { .i32=1 }}; |
| 673 | /* Create the Enumerated type, and then the AVP */ |
| 674 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 675 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 676 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 677 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 678 | }; |
| 679 | /* MBMS-User-Data-Mode-Indication */ |
| 680 | { |
| 681 | struct dict_avp_data data = { |
| 682 | 915, /* Code */ |
| 683 | 10415, /* Vendor */ |
| 684 | "MBMS-User-Data-Mode-Indication", /* Name */ |
| 685 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 686 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 687 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 688 | }; |
| 689 | struct dict_object *type; |
| 690 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-User-Data-Mode-Indication)", NULL, NULL, NULL }; |
| 691 | struct dict_enumval_data t_1 = { "Unicast", { .i32=0 }}; |
| 692 | struct dict_enumval_data t_2 = { "Multicast_and_Unicast", { .i32=1 }}; |
| 693 | /* Create the Enumerated type, and then the AVP */ |
| 694 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 695 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 696 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 697 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 698 | }; |
| 699 | /* MBMS-GGSN-Address */ |
| 700 | { |
| 701 | struct dict_avp_data data = { |
| 702 | 916, /* Code */ |
| 703 | 10415, /* Vendor */ |
| 704 | "MBMS-GGSN-Address", /* Name */ |
| 705 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 706 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 707 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 708 | }; |
| 709 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 710 | }; |
| 711 | /* MBMS-GGSN-Ipv6-Address */ |
| 712 | { |
| 713 | struct dict_avp_data data = { |
| 714 | 917, /* Code */ |
| 715 | 10415, /* Vendor */ |
| 716 | "MBMS-GGSN-Ipv6-Address", /* Name */ |
| 717 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 718 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 719 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 720 | }; |
| 721 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 722 | }; |
| 723 | /* MBMS-BMSC-SSM-IP-Address */ |
| 724 | { |
| 725 | struct dict_avp_data data = { |
| 726 | 918, /* Code */ |
| 727 | 10415, /* Vendor */ |
| 728 | "MBMS-BMSC-SSM-IP-Address", /* Name */ |
| 729 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 730 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 731 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 732 | }; |
| 733 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 734 | }; |
| 735 | /* MBMS-BMSC-SSM-Ipv6-Address */ |
| 736 | { |
| 737 | struct dict_avp_data data = { |
| 738 | 919, /* Code */ |
| 739 | 10415, /* Vendor */ |
| 740 | "MBMS-BMSC-SSM-Ipv6-Address", /* Name */ |
| 741 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 742 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 743 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 744 | }; |
| 745 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 746 | }; |
| 747 | /* MBMS-Flow-Identifier */ |
| 748 | { |
| 749 | struct dict_avp_data data = { |
| 750 | 920, /* Code */ |
| 751 | 10415, /* Vendor */ |
| 752 | "MBMS-Flow-Identifier", /* Name */ |
| 753 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 754 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 755 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 756 | }; |
| 757 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 758 | }; |
| 759 | /* CN-IP-Multicast-Distribution */ |
| 760 | { |
| 761 | struct dict_avp_data data = { |
| 762 | 921, /* Code */ |
| 763 | 10415, /* Vendor */ |
| 764 | "CN-IP-Multicast-Distribution", /* Name */ |
| 765 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 766 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 767 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 768 | }; |
| 769 | struct dict_object *type; |
| 770 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(CN-IP-Multicast-Distribution)", NULL, NULL, NULL }; |
| 771 | struct dict_enumval_data t_1 = { "NO_IP_MULTICAST", { .i32=0 }}; |
| 772 | struct dict_enumval_data t_2 = { "IP_MULTICAST", { .i32=1 }}; |
| 773 | /* Create the Enumerated type, and then the AVP */ |
| 774 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 775 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 776 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 777 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 778 | }; |
| 779 | /* MBMS-HC-Indicator */ |
| 780 | { |
| 781 | struct dict_avp_data data = { |
| 782 | 922, /* Code */ |
| 783 | 10415, /* Vendor */ |
| 784 | "MBMS-HC-Indicator", /* Name */ |
| 785 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 786 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 787 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 788 | }; |
| 789 | struct dict_object *type; |
| 790 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-HC-Indicator)", NULL, NULL, NULL }; |
| 791 | struct dict_enumval_data t_1 = { "General", { .i32=0 }}; |
| 792 | struct dict_enumval_data t_2 = { "Re_Auth_Request_Command", { .i32=1 }}; |
| 793 | struct dict_enumval_data t_3 = { "Usage_of_RADIUS_at_the_Pk_Reference_Point", { .i32=18 }}; |
| 794 | struct dict_enumval_data t_4 = { "Usage_of_Diameter_on_Mz_interface", { .i32=19 }}; |
| 795 | struct dict_enumval_data t_5 = { "RE_Auth_Answer_Command", { .i32=2 }}; |
| 796 | struct dict_enumval_data t_6 = { "Usage_of_Diameter_on_SGmb_interface", { .i32=20 }}; |
| 797 | struct dict_enumval_data t_7 = { "Session_Termination_Request_Command", { .i32=3 }}; |
| 798 | struct dict_enumval_data t_8 = { "Session_Termination_Answer_Command", { .i32=4 }}; |
| 799 | struct dict_enumval_data t_9 = { "Abort_Session_Request_Command", { .i32=5 }}; |
| 800 | struct dict_enumval_data t_10 = { "Abort_Session_Answer_Command", { .i32=6 }}; |
| 801 | struct dict_enumval_data t_11 = { "Gmb_specific_Experimental_Result_Code_AVP_values", { .i32=8 }}; |
| 802 | /* Create the Enumerated type, and then the AVP */ |
| 803 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 804 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 805 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 806 | CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL); |
| 807 | CHECK_dict_new( DICT_ENUMVAL, &t_4, type, NULL); |
| 808 | CHECK_dict_new( DICT_ENUMVAL, &t_5, type, NULL); |
| 809 | CHECK_dict_new( DICT_ENUMVAL, &t_6, type, NULL); |
| 810 | CHECK_dict_new( DICT_ENUMVAL, &t_7, type, NULL); |
| 811 | CHECK_dict_new( DICT_ENUMVAL, &t_8, type, NULL); |
| 812 | CHECK_dict_new( DICT_ENUMVAL, &t_9, type, NULL); |
| 813 | CHECK_dict_new( DICT_ENUMVAL, &t_10, type, NULL); |
| 814 | CHECK_dict_new( DICT_ENUMVAL, &t_11, type, NULL); |
| 815 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 816 | }; |
| 817 | /* MBMS-Access-Indicator */ |
| 818 | { |
| 819 | struct dict_avp_data data = { |
| 820 | 923, /* Code */ |
| 821 | 10415, /* Vendor */ |
| 822 | "MBMS-Access-Indicator", /* Name */ |
| 823 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 824 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */ |
| 825 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 826 | }; |
| 827 | struct dict_object *type; |
| 828 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-Access-Indicator)", NULL, NULL, NULL }; |
| 829 | struct dict_enumval_data t_1 = { "UTRAN", { .i32=0 }}; |
| 830 | struct dict_enumval_data t_2 = { "E_UTRAN", { .i32=1 }}; |
| 831 | struct dict_enumval_data t_3 = { "UTRAN_AND_E_UTRAN", { .i32=2 }}; |
| 832 | /* Create the Enumerated type, and then the AVP */ |
| 833 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 834 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 835 | CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL); |
| 836 | CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL); |
| 837 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 838 | }; |
| 839 | /* MBMS-GW-SSM-IP-Address */ |
| 840 | { |
| 841 | struct dict_avp_data data = { |
| 842 | 924, /* Code */ |
| 843 | 10415, /* Vendor */ |
| 844 | "MBMS-GW-SSM-IP-Address", /* Name */ |
| 845 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 846 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 847 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 848 | }; |
| 849 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 850 | }; |
| 851 | /* MBMS-GW-SSM-Ipv6-Address */ |
| 852 | { |
| 853 | struct dict_avp_data data = { |
| 854 | 925, /* Code */ |
| 855 | 10415, /* Vendor */ |
| 856 | "MBMS-GW-SSM-Ipv6-Address", /* Name */ |
| 857 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 858 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 859 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 860 | }; |
| 861 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 862 | }; |
| 863 | /* MBMS-BMSC-SSM-UDP-Port */ |
| 864 | { |
| 865 | struct dict_avp_data data = { |
| 866 | 926, /* Code */ |
| 867 | 10415, /* Vendor */ |
| 868 | "MBMS-BMSC-SSM-UDP-Port", /* Name */ |
| 869 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 870 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 871 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 872 | }; |
| 873 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 874 | }; |
| 875 | /* MBMS-GW-UDP-Port */ |
| 876 | { |
| 877 | struct dict_avp_data data = { |
| 878 | 927, /* Code */ |
| 879 | 10415, /* Vendor */ |
| 880 | "MBMS-GW-UDP-Port", /* Name */ |
| 881 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 882 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 883 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 884 | }; |
| 885 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 886 | }; |
| 887 | /* MBMS-GW-UDP-Port-Indicator */ |
| 888 | { |
| 889 | struct dict_avp_data data = { |
| 890 | 928, /* Code */ |
| 891 | 10415, /* Vendor */ |
| 892 | "MBMS-GW-UDP-Port-Indicator", /* Name */ |
| 893 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 894 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 895 | AVP_TYPE_INTEGER32 /* base type of data */ |
| 896 | }; |
| 897 | struct dict_object *type; |
| 898 | struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(MBMS-GW-UDP-Port-Indicator)", NULL, NULL, NULL }; |
| 899 | struct dict_enumval_data t_1 = { "UDP_PORT_REQUIRED", { .i32=1 }}; |
| 900 | /* Create the Enumerated type, and then the AVP */ |
| 901 | CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type); |
| 902 | CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL); |
| 903 | CHECK_dict_new( DICT_AVP, &data, type, NULL); |
| 904 | }; |
| 905 | /* MBMS-Data-Transfer-Start */ |
| 906 | { |
| 907 | struct dict_avp_data data = { |
| 908 | 929, /* Code */ |
| 909 | 10415, /* Vendor */ |
| 910 | "MBMS-Data-Transfer-Start", /* Name */ |
| 911 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 912 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 913 | AVP_TYPE_UNSIGNED64 /* base type of data */ |
| 914 | }; |
| 915 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 916 | }; |
| 917 | /* MBMS-Data-Transfer-Stop */ |
| 918 | { |
| 919 | struct dict_avp_data data = { |
| 920 | 930, /* Code */ |
| 921 | 10415, /* Vendor */ |
| 922 | "MBMS-Data-Transfer-Stop", /* Name */ |
| 923 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 924 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 925 | AVP_TYPE_UNSIGNED64 /* base type of data */ |
| 926 | }; |
| 927 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 928 | }; |
| 929 | /* MBMS-Flag */ |
| 930 | { |
| 931 | struct dict_avp_data data = { |
| 932 | 931, /* Code */ |
| 933 | 10415, /* Vendor */ |
| 934 | "MBMS-Flag", /* Name */ |
| 935 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 936 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 937 | AVP_TYPE_UNSIGNED32 /* base type of data */ |
| 938 | }; |
| 939 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 940 | }; |
| 941 | /* Restart-Counter */ |
| 942 | { |
| 943 | struct dict_avp_data data = { |
| 944 | 932, /* Code */ |
| 945 | 10415, /* Vendor */ |
| 946 | "Restart-Counter", /* Name */ |
| 947 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 948 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 949 | AVP_TYPE_UNSIGNED32 /* base type of data */ |
| 950 | }; |
| 951 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 952 | }; |
| 953 | /* Diagnostic-Info */ |
| 954 | { |
| 955 | struct dict_avp_data data = { |
| 956 | 933, /* Code */ |
| 957 | 10415, /* Vendor */ |
| 958 | "Diagnostic-Info", /* Name */ |
| 959 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 960 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 961 | AVP_TYPE_UNSIGNED32 /* base type of data */ |
| 962 | }; |
| 963 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 964 | }; |
| 965 | /* MBMS-Cell-List */ |
| 966 | { |
| 967 | struct dict_avp_data data = { |
| 968 | 934, /* Code */ |
| 969 | 10415, /* Vendor */ |
| 970 | "MBMS-Cell-List", /* Name */ |
| 971 | AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */ |
| 972 | AVP_FLAG_VENDOR, /* Fixed flag values */ |
| 973 | AVP_TYPE_OCTETSTRING /* base type of data */ |
| 974 | }; |
| 975 | CHECK_dict_new( DICT_AVP, &data, NULL, NULL); |
| 976 | }; |
| 977 | |
| 978 | |
| 979 | } |
| 980 | |
| 981 | /* Commands section */ |
| 982 | { |
| 983 | |
| 984 | } |
| 985 | |
| 986 | return 0; |
| 987 | } |
| 988 | |
| 989 | static int dict_ts29061_avps_load_rules(char * conffile) |
| 990 | { |
| 991 | /* Grouped AVP section */ |
| 992 | { |
| 993 | |
| 994 | } |
| 995 | |
| 996 | /* Commands section */ |
| 997 | { |
| 998 | |
| 999 | } |
| 1000 | |
| 1001 | LOG_D( "Extension 'Dictionary definitions for ts29061_avps (e30)' initialized"); |
| 1002 | return 0; |
| 1003 | } |
| 1004 | |
| 1005 | int dict_entry(char * conffile) |
| 1006 | { |
| 1007 | dict_ts29061_avps_load_defs(conffile); |
| 1008 | return dict_ts29061_avps_load_rules(conffile); |
| 1009 | } |
| 1010 | |
| 1011 | const char* dict_ts29061_avps_proto_ver(char * conffile) { |
| 1012 | return ts29061_avps_proto_ver; |
| 1013 | } |
| 1014 | |
| 1015 | const double dict_ts29061_avps_gen_ts(char * conffile) { |
| 1016 | return ts29061_avps_gen_date; |
| 1017 | } |
| 1018 | |
| 1019 | EXTENSION_ENTRY2("dict_ts29061_avps", dict_ts29061_avps_load_defs, dict_ts29061_avps_load_rules, "dict_ts29468_avps", "dict_ts29212_avps", "dict_ts29229_avps", "dict_ts29336_avps", "dict_rfc7155_avps"); |
| 1020 | |
| 1021 | |
| 1022 | |