blob: f3991d4874314341d0deb2748acdcce9a1e8bd33 [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 ts29345_avps (e10).
*/
#include <freeDiameter/extension.h>
#define PROTO_VER "e10"
#define GEN_DATE 1506697165.68
const char *ts29345_avps_proto_ver = PROTO_VER;
const double ts29345_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_ts29345_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);
/* App-Layer-User-Id */
{
struct dict_avp_data data = {
3801, /* Code */
10415, /* Vendor */
"App-Layer-User-Id", /* 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, UTF8String_type, NULL);
};
/* Assistance-Info-Validity-Timer */
{
struct dict_avp_data data = {
3803, /* Code */
10415, /* Vendor */
"Assistance-Info-Validity-Timer", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Discovery-Type */
{
struct dict_avp_data data = {
3804, /* Code */
10415, /* Vendor */
"Discovery-Type", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Filter-Id */
{
struct dict_avp_data data = {
3805, /* Code */
10415, /* Vendor */
"Filter-Id", /* 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);
};
/* MAC-Address */
{
struct dict_avp_data data = {
3806, /* Code */
10415, /* Vendor */
"MAC-Address", /* 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, UTF8String_type, NULL);
};
/* Operating-Channel */
{
struct dict_avp_data data = {
3808, /* Code */
10415, /* Vendor */
"Operating-Channel", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* P2P-Features */
{
struct dict_avp_data data = {
3809, /* Code */
10415, /* Vendor */
"P2P-Features", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* ProSe-App-Code */
{
struct dict_avp_data data = {
3810, /* Code */
10415, /* Vendor */
"ProSe-App-Code", /* 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);
};
/* ProSe-App-Id */
{
struct dict_avp_data data = {
3811, /* Code */
10415, /* Vendor */
"ProSe-App-Id", /* 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, UTF8String_type, NULL);
};
/* ProSe-App-Mask */
{
struct dict_avp_data data = {
3812, /* Code */
10415, /* Vendor */
"ProSe-App-Mask", /* 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);
};
/* PRR-Flags */
{
struct dict_avp_data data = {
3814, /* Code */
10415, /* Vendor */
"PRR-Flags", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* ProSe-Validity-Timer */
{
struct dict_avp_data data = {
3815, /* Code */
10415, /* Vendor */
"ProSe-Validity-Timer", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Requesting-EPUID */
{
struct dict_avp_data data = {
3816, /* Code */
10415, /* Vendor */
"Requesting-EPUID", /* 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, UTF8String_type, NULL);
};
/* Targeted-EPUID */
{
struct dict_avp_data data = {
3817, /* Code */
10415, /* Vendor */
"Targeted-EPUID", /* 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, UTF8String_type, NULL);
};
/* Time-Window */
{
struct dict_avp_data data = {
3818, /* Code */
10415, /* Vendor */
"Time-Window", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* WLAN-Link-Layer-Id */
{
struct dict_avp_data data = {
3821, /* Code */
10415, /* Vendor */
"WLAN-Link-Layer-Id", /* 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);
};
/* Location-Update-Event-Type */
{
struct dict_avp_data data = {
3824, /* Code */
10415, /* Vendor */
"Location-Update-Event-Type", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Location-Update-Event-Trigger */
{
struct dict_avp_data data = {
3826, /* Code */
10415, /* Vendor */
"Location-Update-Event-Trigger", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Report-Cardinality */
{
struct dict_avp_data data = {
3827, /* Code */
10415, /* Vendor */
"Report-Cardinality", /* 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(Report-Cardinality)", NULL, NULL, NULL };
struct dict_enumval_data t_1 = { "SINGLE", { .i32=0 }};
struct dict_enumval_data t_2 = { "MULTIPLE", { .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);
};
/* Minimum-Interval-Time */
{
struct dict_avp_data data = {
3828, /* Code */
10415, /* Vendor */
"Minimum-Interval-Time", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Location-Report-Interval-Time */
{
struct dict_avp_data data = {
3830, /* Code */
10415, /* Vendor */
"Location-Report-Interval-Time", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Total-Number-Of-Reports */
{
struct dict_avp_data data = {
3831, /* Code */
10415, /* Vendor */
"Total-Number-Of-Reports", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Validity-Time-Announce */
{
struct dict_avp_data data = {
3832, /* Code */
10415, /* Vendor */
"Validity-Time-Announce", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Validity-Time-Monitor */
{
struct dict_avp_data data = {
3833, /* Code */
10415, /* Vendor */
"Validity-Time-Monitor", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* Validity-Time-Communication */
{
struct dict_avp_data data = {
3834, /* Code */
10415, /* Vendor */
"Validity-Time-Communication", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* MIC */
{
struct dict_avp_data data = {
3836, /* Code */
10415, /* Vendor */
"MIC", /* 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);
};
/* UTC-based-Counter */
{
struct dict_avp_data data = {
3837, /* Code */
10415, /* Vendor */
"UTC-based-Counter", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* ProSe-Match-Refresh-Timer */
{
struct dict_avp_data data = {
3838, /* Code */
10415, /* Vendor */
"ProSe-Match-Refresh-Timer", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* ProSe-Metadata-Index-Mask */
{
struct dict_avp_data data = {
3839, /* Code */
10415, /* Vendor */
"ProSe-Metadata-Index-Mask", /* 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);
};
/* OS-ID */
{
struct dict_avp_data data = {
3841, /* Code */
10415, /* Vendor */
"OS-ID", /* 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);
};
/* OS-App-ID */
{
struct dict_avp_data data = {
3842, /* Code */
10415, /* Vendor */
"OS-App-ID", /* 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);
};
/* Requesting-RPAUID */
{
struct dict_avp_data data = {
3843, /* Code */
10415, /* Vendor */
"Requesting-RPAUID", /* 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);
};
/* Target-RPAUID */
{
struct dict_avp_data data = {
3844, /* Code */
10415, /* Vendor */
"Target-RPAUID", /* 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);
};
/* Target-PDUID */
{
struct dict_avp_data data = {
3845, /* Code */
10415, /* Vendor */
"Target-PDUID", /* 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);
};
/* ProSe-Restricted-Code */
{
struct dict_avp_data data = {
3846, /* Code */
10415, /* Vendor */
"ProSe-Restricted-Code", /* 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);
};
/* ProSe-Restricted-Code-Suffix-Range */
{
struct dict_avp_data data = {
3847, /* Code */
10415, /* Vendor */
"ProSe-Restricted-Code-Suffix-Range", /* 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);
};
/* Beginning-Suffix */
{
struct dict_avp_data data = {
3848, /* Code */
10415, /* Vendor */
"Beginning-Suffix", /* 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);
};
/* Ending-Suffix */
{
struct dict_avp_data data = {
3849, /* Code */
10415, /* Vendor */
"Ending-Suffix", /* 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);
};
/* Discovery-Entry-ID */
{
struct dict_avp_data data = {
3850, /* Code */
10415, /* Vendor */
"Discovery-Entry-ID", /* 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);
};
/* Match-Timestamp */
{
struct dict_avp_data data = {
3851, /* Code */
10415, /* Vendor */
"Match-Timestamp", /* 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);
};
/* PMR-Flags */
{
struct dict_avp_data data = {
3852, /* Code */
10415, /* Vendor */
"PMR-Flags", /* Name */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flags */
AVP_FLAG_VENDOR | AVP_FLAG_MANDATORY, /* Fixed flag values */
AVP_TYPE_UNSIGNED32 /* base type of data */
};
CHECK_dict_new( DICT_AVP, &data, NULL, NULL);
};
/* ProSe-Application-Metadata */
{
struct dict_avp_data data = {
3853, /* Code */
10415, /* Vendor */
"ProSe-Application-Metadata", /* 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, UTF8String_type, NULL);
};
/* Banned-RPAUID */
{
struct dict_avp_data data = {
3858, /* Code */
10415, /* Vendor */
"Banned-RPAUID", /* 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);
};
/* Banned-PDUID */
{
struct dict_avp_data data = {
3859, /* Code */
10415, /* Vendor */
"Banned-PDUID", /* 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);
};
/* DUSK */
{
struct dict_avp_data data = {
3862, /* Code */
10415, /* Vendor */
"DUSK", /* 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);
};
/* DUIK */
{
struct dict_avp_data data = {
3863, /* Code */
10415, /* Vendor */
"DUIK", /* 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);
};
/* DUCK */
{
struct dict_avp_data data = {
3864, /* Code */
10415, /* Vendor */
"DUCK", /* 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);
};
/* MIC-Check-Indicator */
{
struct dict_avp_data data = {
3865, /* Code */
10415, /* Vendor */
"MIC-Check-Indicator", /* 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);
};
/* Encrypted-Bitmask */
{
struct dict_avp_data data = {
3866, /* Code */
10415, /* Vendor */
"Encrypted-Bitmask", /* 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);
};
/* ProSe-App-Code-Suffix-Range */
{
struct dict_avp_data data = {
3867, /* Code */
10415, /* Vendor */
"ProSe-App-Code-Suffix-Range", /* 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);
};
/* ProSe-Query-Code */
{
struct dict_avp_data data = {
9900, /* Code */
10415, /* Vendor */
"ProSe-Query-Code", /* 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);
};
/* ProSe-Response-Code */
{
struct dict_avp_data data = {
9901, /* Code */
10415, /* Vendor */
"ProSe-Response-Code", /* 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);
};
/* Periodic-Location-Type */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3829, /* Code */
10415, /* Vendor */
"Periodic-Location-Type", /* 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);
}
/* Code-Receiving-Security-Material */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3860, /* Code */
10415, /* Vendor */
"Code-Receiving-Security-Material", /* 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);
}
/* Code-Sending-Security-Material */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3861, /* Code */
10415, /* Vendor */
"Code-Sending-Security-Material", /* 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);
}
/* Change-Of-Area-Type */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3825, /* Code */
10415, /* Vendor */
"Change-Of-Area-Type", /* 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);
}
/* WLAN-Link-Layer-Id-List */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3822, /* Code */
10415, /* Vendor */
"WLAN-Link-Layer-Id-List", /* 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);
}
/* Match-Request */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3856, /* Code */
10415, /* Vendor */
"Match-Request", /* 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);
}
/* ProSe-App-Code-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3835, /* Code */
10415, /* Vendor */
"ProSe-App-Code-Info", /* 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);
}
/* App-Identifier */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3840, /* Code */
10415, /* Vendor */
"App-Identifier", /* 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);
}
/* Match-Report */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3807, /* Code */
10415, /* Vendor */
"Match-Report", /* 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);
}
/* ProSe-Discovery-Filter */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3813, /* Code */
10415, /* Vendor */
"ProSe-Discovery-Filter", /* 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);
}
/* Discovery-Auth-Request */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3854, /* Code */
10415, /* Vendor */
"Discovery-Auth-Request", /* 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);
}
/* Match-Report-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3857, /* Code */
10415, /* Vendor */
"Match-Report-Info", /* 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);
}
/* Location-Update-Trigger */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3823, /* Code */
10415, /* Vendor */
"Location-Update-Trigger", /* 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);
}
/* WiFi-P2P-Assistance-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3819, /* Code */
10415, /* Vendor */
"WiFi-P2P-Assistance-Info", /* 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);
}
/* Discovery-Auth-Response */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3855, /* Code */
10415, /* Vendor */
"Discovery-Auth-Response", /* 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);
}
/* WLAN-Assistance-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3820, /* Code */
10415, /* Vendor */
"WLAN-Assistance-Info", /* 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);
}
/* Assistance-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_data data = {
3802, /* Code */
10415, /* Vendor */
"Assistance-Info", /* 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);
}
}
/* Commands section */
{
}
return 0;
}
static int dict_ts29345_avps_load_rules(char * conffile)
{
/* Grouped AVP section */
{
/* Periodic-Location-Type */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Periodic-Location-Type"};
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 = "Location-Report-Interval-Time"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Total-Number-Of-Reports"}, RULE_REQUIRED, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Code-Receiving-Security-Material */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Code-Receiving-Security-Material"};
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 = "DUSK"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "DUIK"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "MIC-Check-Indicator"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "DUCK"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Encrypted-Bitmask"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Code-Sending-Security-Material */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Code-Sending-Security-Material"};
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 = "DUSK"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "DUIK"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "DUCK"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Encrypted-Bitmask"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Change-Of-Area-Type */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Change-Of-Area-Type"};
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 = "Location-Update-Event-Trigger"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Report-Cardinality"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Minimum-Interval-Time"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* WLAN-Link-Layer-Id-List */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "WLAN-Link-Layer-Id-List"};
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 = "WLAN-Link-Layer-Id"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Match-Request */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Match-Request"};
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 = "Discovery-Type"}, RULE_REQUIRED, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* ProSe-App-Code-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "ProSe-App-Code-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 = "ProSe-App-Code"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "MIC"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "UTC-based-Counter"}, RULE_REQUIRED, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* App-Identifier */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "App-Identifier"};
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 = "OS-ID"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "OS-App-ID"}, RULE_REQUIRED, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Match-Report */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Match-Report"};
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 = "Discovery-Type"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Code"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Metadata-Index-Mask"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Id"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Validity-Timer"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Match-Refresh-Timer"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Application-Metadata"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* ProSe-Discovery-Filter */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "ProSe-Discovery-Filter"};
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 = "Filter-Id"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Id"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Validity-Timer"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Code"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Mask"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Discovery-Auth-Request */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Discovery-Auth-Request"};
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 = "Discovery-Type"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "User-Identity"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Id"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Code"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Code-Suffix-Range"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Validity-Timer"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "App-Identifier"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Requesting-RPAUID"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Target-RPAUID"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Target-PDUID"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Restricted-Code"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Query-Code"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Response-Code"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Restricted-Code-Suffix-Range"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Banned-RPAUID"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Banned-PDUID"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Service-Result"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Match-Report-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Match-Report-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 = "Discovery-Type"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "User-Identity"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-App-Id"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Location-Update-Trigger */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Location-Update-Trigger"};
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 = "Location-Update-Event-Type"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Change-Of-Area-Type"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Periodic-Location-Type"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* WiFi-P2P-Assistance-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "WiFi-P2P-Assistance-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 = "SSID"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 0, .avp_name = "EAP-Master-Session-Key"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "P2P-Features"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "WLAN-Link-Layer-Id-List"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "WLAN-Link-Layer-Id-List"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Operating-Channel"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Assistance-Info-Validity-Timer"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Discovery-Auth-Response */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Discovery-Auth-Response"};
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 = "Discovery-Type"}, RULE_REQUIRED, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Discovery-Filter"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "Visited-PLMN-Id"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Restricted-Code"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Query-Code"}, RULE_OPTIONAL, -1, -1 },
{ { .avp_vendor = 10415, .avp_name = "ProSe-Response-Code"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* WLAN-Assistance-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "WLAN-Assistance-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 = "WiFi-P2P-Assistance-Info"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
/* Assistance-Info */
{
/* Grouped */
struct dict_object * avp;
struct dict_avp_request avp_vendor_plus_name = { .avp_vendor = 10415, .avp_name = "Assistance-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 = "WLAN-Assistance-Info"}, RULE_OPTIONAL, -1, -1 }
};
PARSE_loc_rules( rules, avp );
}
}
/* Commands section */
{
}
LOG_D( "Extension 'Dictionary definitions for ts29345_avps (e10)' initialized");
return 0;
}
int dict_entry(char * conffile)
{
dict_ts29345_avps_load_defs(conffile);
return dict_ts29345_avps_load_rules(conffile);
}
const char* dict_ts29345_avps_proto_ver(char * conffile) {
return ts29345_avps_proto_ver;
}
const double dict_ts29345_avps_gen_ts(char * conffile) {
return ts29345_avps_gen_date;
}
EXTENSION_ENTRY2("dict_ts29345_avps", dict_ts29345_avps_load_defs, dict_ts29345_avps_load_rules, "dict_ts32299_avps", "dict_ts29272_avps", "dict_ts29273_avps", "dict_ts29336_avps", "dict_ts29344_avps", "dict_ts29329_avps", "dict_ts29229_avps", "dict_draftload_avps", "dict_rfc7683_avps", "dict_rfc4072_avps", "dict_rfc7944_avps");