blob: a3577eab8619aee299137c3045d5ae0a48986351 [file] [log] [blame]
/*
* Copyright (c) 2017 Sprint
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/****************
Generated By: fdtool enhancements to diafuzzer
License: same as freeDiameter
****************/
/*
* Dictionary definitions of objects specified in ts29329_avps (e20).
*/
#include <freeDiameter/extension.h>
#define PROTO_VER "e20"
#define GEN_DATE 1506697146.88
const char *ts29329_avps_proto_ver = PROTO_VER;
const double ts29329_avps_gen_date = GEN_DATE;
/* The content of this file follows the same structure as dict_base_proto.c */
#define CHECK_dict_new( _type, _data, _parent, _ref ) \
{ \
int _ret = fd_dict_new( fd_g_config->cnf_dict, (_type), (_data), (_parent), (_ref) ); \
if ( _ret != 0 && _ret != EEXIST ) \
return _ret; \
}
#define CHECK_dict_search( _type, _criteria, _what, _result ) \
CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, (_type), (_criteria), (_what), (_result), ENOENT) );
struct local_rules_definition {
struct dict_avp_request avp_vendor_plus_name;
enum rule_position position;
int min;
int max;
};
#define RULE_ORDER( _position ) ((((_position) == RULE_FIXED_HEAD) || ((_position) == RULE_FIXED_TAIL)) ? 1 : 0 )
/* Attention! This version of the macro uses AVP_BY_NAME_AND_VENDOR, in contrast to most other copies! */
#define PARSE_loc_rules( _rulearray, _parent) { \
int __ar; \
for (__ar=0; __ar < sizeof(_rulearray) / sizeof((_rulearray)[0]); __ar++) { \
struct dict_rule_data __data = { NULL, \
(_rulearray)[__ar].position, \
0, \
(_rulearray)[__ar].min, \
(_rulearray)[__ar].max}; \
__data.rule_order = RULE_ORDER(__data.rule_position); \
CHECK_FCT( fd_dict_search( \
fd_g_config->cnf_dict, \
DICT_AVP, \
AVP_BY_NAME_AND_VENDOR, \
&(_rulearray)[__ar].avp_vendor_plus_name, \
&__data.rule_avp, 0 ) ); \
if ( !__data.rule_avp ) { \
TRACE_DEBUG(INFO, "AVP Not found: '%s'", (_rulearray)[__ar].avp_vendor_plus_name.avp_name); \
return ENOENT; \
} \
{ \
int _ret = fd_dict_new( fd_g_config->cnf_dict, DICT_RULE, &(__data), (_parent), NULL ); \
if ( _ret != 0 && _ret != EEXIST ) { \
TRACE_DEBUG(INFO, "Error on rule with AVP '%s'", \
(_rulearray)[__ar].avp_vendor_plus_name.avp_name); \
return EINVAL; \
} \
} \
} \
}
#define CHECK_vendor_new( _data ) { \
struct dict_object * vendor_found; \
if (fd_dict_search(fd_g_config->cnf_dict,DICT_VENDOR,VENDOR_BY_ID,&_data.vendor_id,&vendor_found,ENOENT) == ENOENT) { \
CHECK_FCT(fd_dict_new(fd_g_config->cnf_dict, DICT_VENDOR, &_data, NULL, NULL)); \
} \
}
#define enumval_def_u32( _val_, _str_ ) \
{ _str_, { .u32 = _val_ }}
#define enumval_def_os( _len_, _val_, _str_ ) \
{ _str_, { .os = { .data = (unsigned char *)_val_, .len = _len_ }}}
static int dict_ts29329_avps_load_defs(char * conffile)
{
TRACE_ENTRY("%p", conffile);
/* Application Section */
{
/* Create the vendors */ {
struct dict_vendor_data vendor_data = { 10415, "3GPP" };
CHECK_dict_new(DICT_VENDOR, &vendor_data, NULL, NULL)
}
}
/* AVP section */
{
struct dict_object * Address_type;
struct dict_object * UTF8String_type;
struct dict_object * DiameterIdentity_type;
struct dict_object * DiameterURI_type;
struct dict_object * Time_type;
struct dict_object * IPFilterRule_type;
CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Address", &Address_type);
CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "UTF8String", &UTF8String_type);
CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterIdentity", &DiameterIdentity_type);
CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterURI", &DiameterURI_type);
CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Time", &Time_type);
CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "IPFilterRule", &IPFilterRule_type);
/* MSISDN */
{
struct dict_avp_data data = {
701, /* Code */
10415, /* Vendor */
"MSISDN", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* User-Data */
{
struct dict_avp_data data = {
702, /* Code */
10415, /* Vendor */
"User-Data", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Data-Reference */
{
struct dict_avp_data data = {
703, /* Code */
10415, /* Vendor */
"Data-Reference", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Data-Reference)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "RepositoryData", { .i32=0 }};
struct dict_enumval_data t_2 = { "IMSPublicIdentity", { .i32=10 }};
struct dict_enumval_data t_3 = { "IMSUserState", { .i32=11 }};
struct dict_enumval_data t_4 = { "S_CSCFName", { .i32=12 }};
struct dict_enumval_data t_5 = { "InitialFilterCriteria", { .i32=13 }};
struct dict_enumval_data t_6 = { "LocationInformation", { .i32=14 }};
struct dict_enumval_data t_7 = { "UserState", { .i32=15 }};
struct dict_enumval_data t_8 = { "ChargingInformation", { .i32=16 }};
struct dict_enumval_data t_9 = { "MSISDN", { .i32=17 }};
struct dict_enumval_data t_10 = { "PSIActivation", { .i32=18 }};
struct dict_enumval_data t_11 = { "DSAI", { .i32=19 }};
struct dict_enumval_data t_12 = { "ServiceLevelTraceInfo", { .i32=21 }};
struct dict_enumval_data t_13 = { "IPAddressSecureBindingInformation", { .i32=22 }};
struct dict_enumval_data t_14 = { "ServicePriorityLevel", { .i32=23 }};
struct dict_enumval_data t_15 = { "SMSRegistrationInfo", { .i32=24 }};
struct dict_enumval_data t_16 = { "UEReachabilityForIP", { .i32=25 }};
struct dict_enumval_data t_17 = { "TADSinformation", { .i32=26 }};
struct dict_enumval_data t_18 = { "STN_SR", { .i32=27 }};
struct dict_enumval_data t_19 = { "UE_SRVCC_Capability", { .i32=28 }};
struct dict_enumval_data t_20 = { "ExtendedPriority", { .i32=29 }};
struct dict_enumval_data t_21 = { "CSRN", { .i32=30 }};
struct dict_enumval_data t_22 = { "ReferenceLocationInformation", { .i32=31 }};
struct dict_enumval_data t_23 = { "IMSI", { .i32=32 }};
struct dict_enumval_data t_24 = { "IMSPrivateUserIdentity", { .i32=33 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_4, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_5, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_6, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_7, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_8, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_9, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_10, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_11, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_12, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_13, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_14, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_15, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_16, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_17, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_18, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_19, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_20, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_21, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_22, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_23, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_24, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Service-Indication */
{
struct dict_avp_data data = {
704, /* Code */
10415, /* Vendor */
"Service-Indication", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Subs-Req-Type */
{
struct dict_avp_data data = {
705, /* Code */
10415, /* Vendor */
"Subs-Req-Type", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Subs-Req-Type)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "Subscribe", { .i32=0 }};
struct dict_enumval_data t_2 = { "Unsubscribe", { .i32=1 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Requested-Domain */
{
struct dict_avp_data data = {
706, /* Code */
10415, /* Vendor */
"Requested-Domain", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Requested-Domain)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "CS_Domain", { .i32=0 }};
struct dict_enumval_data t_2 = { "PS_Domain", { .i32=1 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Current-Location */
{
struct dict_avp_data data = {
707, /* Code */
10415, /* Vendor */
"Current-Location", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Current-Location)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "DoNotNeedInitiateActiveLocationRetrieval", { .i32=0 }};
struct dict_enumval_data t_2 = { "InitiateActiveLocationRetrieval", { .i32=1 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Identity-Set */
{
struct dict_avp_data data = {
708, /* Code */
10415, /* Vendor */
"Identity-Set", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Identity-Set)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "ALL_IDENTITIES", { .i32=0 }};
struct dict_enumval_data t_2 = { "REGISTERED_IDENTITIES", { .i32=1 }};
struct dict_enumval_data t_3 = { "IMPLICIT_IDENTITIES", { .i32=2 }};
struct dict_enumval_data t_4 = { "ALIAS_IDENTITIES", { .i32=3 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_3, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_4, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Expiry-Time */
{
struct dict_avp_data data = {
709, /* Code */
10415, /* Vendor */
"Expiry-Time", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, Time_type, NULL);
};
/* Send-Data-Indication */
{
struct dict_avp_data data = {
710, /* Code */
10415, /* Vendor */
"Send-Data-Indication", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Send-Data-Indication)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "USER_DATA_NOT_REQUESTED", { .i32=0 }};
struct dict_enumval_data t_2 = { "USER_DATA_REQUESTED", { .i32=1 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* DSAI-Tag */
{
struct dict_avp_data data = {
711, /* Code */
10415, /* Vendor */
"DSAI-Tag", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Wildcarded-Public-Identity */
{
struct dict_avp_data data = {
634, /* Code */
10415, /* Vendor */
"Wildcarded-Public-Identity", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL);
};
/* Wildcarded-IMPU */
{
struct dict_avp_data data = {
636, /* Code */
10415, /* Vendor */
"Wildcarded-IMPU", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, UTF8String_type, NULL);
};
/* One-Time-Notification */
{
struct dict_avp_data data = {
712, /* Code */
10415, /* Vendor */
"One-Time-Notification", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(One-Time-Notification)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "ONE_TIME_NOTIFICATION_REQUESTED", { .i32=0 }};
struct dict_enumval_data t_2 = { "IP", { .i32=25 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Requested-Nodes */
{
struct dict_avp_data data = {
713, /* Code */
10415, /* Vendor */
"Requested-Nodes", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Serving-Node-Indication */
{
struct dict_avp_data data = {
714, /* Code */
10415, /* Vendor */
"Serving-Node-Indication", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Serving-Node-Indication)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "ONLY_SERVING_NODES_REQUIRED", { .i32=0 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Sequence-Number */
{
struct dict_avp_data data = {
716, /* Code */
10415, /* Vendor */
"Sequence-Number", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Pre-paging-Supported */
{
struct dict_avp_data data = {
717, /* Code */
10415, /* Vendor */
"Pre-paging-Supported", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Pre-paging-Supported)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "PREPAGING_NOT_SUPPORTED", { .i32=0 }};
struct dict_enumval_data t_2 = { "PREPAGING_SUPPORTED", { .i32=1 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* Local-Time-Zone-Indication */
{
struct dict_avp_data data = {
718, /* Code */
10415, /* Vendor */
"Local-Time-Zone-Indication", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_INTEGER32 /* base type of data */
};
struct dict_object *type;
struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "3GPP/Enumerated(Local-Time-Zone-Indication)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "ONLY_LOCAL_TIME_ZONE_REQUESTED", { .i32=0 }};
struct dict_enumval_data t_2 = { "LOCAL_TIME_ZONE_WITH_LOCATION_INFO_REQUESTED", { .i32=1 }};
/* Create the Enumerated type, and then the AVP */
CHECK_dict_new( DICT_TYPE, &tdata, NULL, &type);
CHECK_dict_new( DICT_ENUMVAL, &t_1, type, NULL);
CHECK_dict_new( DICT_ENUMVAL, &t_2, type, NULL);
CHECK_dict_new( DICT_AVP, &data, type, NULL);
};
/* UDR-Flags */
{
struct dict_avp_data data = {
719, /* Code */
10415, /* Vendor */
"UDR-Flags", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Call-Reference-Number */
{
struct dict_avp_data data = {
721, /* Code */
10415, /* Vendor */
"Call-Reference-Number", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* AS-Number */
{
struct dict_avp_data data = {
722, /* Code */
10415, /* Vendor */
"AS-Number", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_OCTETSTRING /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* User-Identity */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
700, /* Code */
10415, /* Vendor */
"User-Identity", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_GROUPED /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data , NULL, &avp);
}
/* Call-Reference-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
720, /* Code */
10415, /* Vendor */
"Call-Reference-Info", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_GROUPED /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data , NULL, &avp);
}
/* Repository-Data-ID */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
715, /* Code */
10415, /* Vendor */
"Repository-Data-ID", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR, /* Fixed flag values */
AVP_TYPE_GROUPED /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data , NULL, &avp);
}
}
/* Commands section */
{
}
return 0;
}
static int dict_ts29329_avps_load_rules(char * conffile)
{
/* Grouped AVP section */
{
/* User-Identity */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "User-Identity"};
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &avp_vendor_plus_name, &avp)
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Public-Identity"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "MSISDN"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Call-Reference-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Call-Reference-Info"};
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &avp_vendor_plus_name, &avp)
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Call-Reference-Number"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "AS-Number"}, RULE_REQUIRED, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Repository-Data-ID */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Repository-Data-ID"};
CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &avp_vendor_plus_name, &avp)
struct local_rules_definition rules[] =
{
{ { .avp_vendor = 10415, .avp_name = "Service-Indication"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Sequence-Number"}, RULE_REQUIRED, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
}
/* Commands section */
{
}
LOG_D( "Extension 'Dictionary definitions for ts29329_avps (e20)' initialized");
return 0;
}
int dict_entry(char * conffile)
{
dict_ts29329_avps_load_defs(conffile);
return dict_ts29329_avps_load_rules(conffile);
}
const char* dict_ts29329_avps_proto_ver(char * conffile) {
return ts29329_avps_proto_ver;
}
const double dict_ts29329_avps_gen_ts(char * conffile) {
return ts29329_avps_gen_date;
}
EXTENSION_ENTRY2("dict_ts29329_avps", dict_ts29329_avps_load_defs, dict_ts29329_avps_load_rules, "dict_ts29229_avps", "dict_draftload_avps", "dict_rfc7683_avps", "dict_rfc7944_avps");