Mercurial > hg > freeDiameter
annotate extensions/dict_dcca_starent/dict_dcca_starent.c @ 1435:4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Regen with updated org_to_fd.pl.
No change to generated dictionary.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Wed, 19 Feb 2020 18:12:45 +1100 |
parents | 729e5074839f |
children | b98c9de78f58 |
rev | line source |
---|---|
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
1 /* |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
2 * Dictionary definitions of objects specified in DCCA by Starent. |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
3 */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
4 #include <freeDiameter/extension.h> |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
5 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
6 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
7 /* The content of this file follows the same structure as dict_base_proto.c */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
8 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
9 #define CHECK_dict_new( _type, _data, _parent, _ref ) \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
10 CHECK_FCT( fd_dict_new( fd_g_config->cnf_dict, (_type), (_data), (_parent), (_ref)) ); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
11 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
12 #define CHECK_dict_search( _type, _criteria, _what, _result ) \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
13 CHECK_FCT( fd_dict_search( fd_g_config->cnf_dict, (_type), (_criteria), (_what), (_result), ENOENT) ); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
14 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
15 struct local_rules_definition { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
16 char *avp_name; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
17 enum rule_position position; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
18 int min; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
19 int max; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
20 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
21 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
22 #define RULE_ORDER( _position ) ((((_position) == RULE_FIXED_HEAD) || ((_position) == RULE_FIXED_TAIL)) ? 1 : 0 ) |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
23 |
1227 | 24 /* Attention! This version of the macro uses AVP_BY_NAME_ALL_VENDORS, in contrast to most other copies! */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
25 #define PARSE_loc_rules( _rulearray, _parent) { \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
26 int __ar; \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
27 for (__ar=0; __ar < sizeof(_rulearray) / sizeof((_rulearray)[0]); __ar++) { \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
28 struct dict_rule_data __data = { NULL, \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
29 (_rulearray)[__ar].position, \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
30 0, \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
31 (_rulearray)[__ar].min, \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
32 (_rulearray)[__ar].max}; \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
33 __data.rule_order = RULE_ORDER(__data.rule_position); \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
34 CHECK_FCT( fd_dict_search( \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
35 fd_g_config->cnf_dict, \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
36 DICT_AVP, \ |
1227 | 37 AVP_BY_NAME_ALL_VENDORS, \ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
38 (_rulearray)[__ar].avp_name, \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
39 &__data.rule_avp, 0 ) ); \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
40 if ( !__data.rule_avp ) { \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
41 TRACE_DEBUG(INFO, "AVP Not found: '%s'", (_rulearray)[__ar].avp_name ); \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
42 return ENOENT; \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
43 } \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
44 CHECK_FCT_DO( fd_dict_new( fd_g_config->cnf_dict, DICT_RULE, &__data, _parent, NULL), \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
45 { \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
46 TRACE_DEBUG(INFO, "Error on rule with AVP '%s'", \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
47 (_rulearray)[__ar].avp_name ); \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
48 return EINVAL; \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
49 } ); \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
50 } \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
51 } |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
52 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
53 #define enumval_def_u32( _val_, _str_ ) \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
54 { _str_, { .u32 = _val_ }} |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
55 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
56 #define enumval_def_os( _len_, _val_, _str_ ) \ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
57 { _str_, { .os = { .data = (unsigned char *)_val_, .len = _len_ }}} |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
58 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
59 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
60 static int dict_dcca_starent_entry(char * conffile) |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
61 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
62 /* Applications section */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
63 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
64 /* Create the vendors */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
65 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
66 struct dict_vendor_data vendor_data = { 8164, "Starent" }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
67 CHECK_FCT(fd_dict_new(fd_g_config->cnf_dict, DICT_VENDOR, &vendor_data, NULL, NULL)); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
68 } |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
69 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
70 } |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
71 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
72 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
73 struct dict_object * Address_type; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
74 struct dict_object * DiameterIdentity_type; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
75 struct dict_object * DiameterURI_type; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
76 struct dict_object * IPFilterRule_type; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
77 struct dict_object * Time_type; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
78 struct dict_object * UTF8String_type; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
79 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
80 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Address", &Address_type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
81 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterIdentity", &DiameterIdentity_type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
82 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "DiameterURI", &DiameterURI_type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
83 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "IPFilterRule", &IPFilterRule_type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
84 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "Time", &Time_type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
85 CHECK_dict_search( DICT_TYPE, TYPE_BY_NAME, "UTF8String", &UTF8String_type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
86 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
87 /*==================================================================*/ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
88 /* Start of generated data. */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
89 /* */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
90 /* The following is created automatically with: */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
91 /* org_to_fd.pl -V 'Starent' -v 8164 */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
92 /* Changes will be lost during the next update. */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
93 /* Do not modify; modify the source .org file instead. */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
94 /*==================================================================*/ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
95 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
96 /* Cisco ASR 5000 Series AAA Interface */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
97 /* Administration and Reference */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
98 /* Release 8.x and 9.0 */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
99 /* Last Updated June 30, 2010 */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
100 /* updated using v15 docs from Jan 2014 */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
101 /* www.cisco.com/c/dam/en/us/td/docs/wireless/asr_5000/15-0/15-0-AAA-Reference.pdf */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
102 /* SN-Volume-Quota-Threshold, Unsigned32, code 501 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
103 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
104 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
105 501, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
106 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
107 "SN-Volume-Quota-Threshold", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
108 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
109 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
110 AVP_TYPE_UNSIGNED32 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
111 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
112 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
113 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
114 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
115 /* SN-Unit-Quota-Threshold, Unsigned32, code 502 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
116 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
117 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
118 502, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
119 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
120 "SN-Unit-Quota-Threshold", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
121 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
122 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
123 AVP_TYPE_UNSIGNED32 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
124 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
125 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
126 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
127 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
128 /* SN-Time-Quota-Threshold, Unsigned32, code 503 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
129 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
130 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
131 503, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
132 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
133 "SN-Time-Quota-Threshold", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
134 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
135 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
136 AVP_TYPE_UNSIGNED32 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
137 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
138 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
139 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
140 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
141 /* SN-Total-Used-Service-Unit, Grouped, code 504 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
142 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
143 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
144 504, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
145 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
146 "SN-Total-Used-Service-Unit", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
147 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
148 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
149 AVP_TYPE_GROUPED /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
150 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
151 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
152 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
153 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
154 /* SN-Absolute-Validity-Time, Time, code 505 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
155 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
156 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
157 505, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
158 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
159 "SN-Absolute-Validity-Time", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
160 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
161 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
162 AVP_TYPE_OCTETSTRING /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
163 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
164 CHECK_dict_new(DICT_AVP, &data, Time_type, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
165 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
166 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
167 /* SN-Bandwidth-Control, Enumerated, code 512 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
168 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
169 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
170 512, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
171 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
172 "SN-Bandwidth-Control", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
173 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
174 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
175 AVP_TYPE_INTEGER32 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
176 }; |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
177 struct dict_object *type; |
1324
729e5074839f
Consistently start names of Enumerated types with 'Enumerated'.
Thomas Klausner <tk@giga.or.at>
parents:
1276
diff
changeset
|
178 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "Enumerated(Starent/SN-Bandwidth-Control)", NULL, NULL, NULL }; |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
179 CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
180 CHECK_dict_new(DICT_AVP, &data, type, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
181 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
182 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
183 /* SN-Transparent-Data, OctetString, code 513 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
184 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
185 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
186 513, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
187 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
188 "SN-Transparent-Data", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
189 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
190 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
191 AVP_TYPE_OCTETSTRING /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
192 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
193 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
194 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
195 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
196 /* SN-Traffic-Policy, UTF8String, code 514 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
197 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
198 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
199 514, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
200 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
201 "SN-Traffic-Policy", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
202 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
203 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
204 AVP_TYPE_OCTETSTRING /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
205 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
206 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
207 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
208 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
209 /* SN-Firewall-Policy, UTF8String, code 515 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
210 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
211 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
212 515, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
213 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
214 "SN-Firewall-Policy", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
215 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
216 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
217 AVP_TYPE_OCTETSTRING /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
218 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
219 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
220 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
221 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
222 /* SN-Usage-Monitoring-Control, Grouped, code 517 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
223 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
224 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
225 517, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
226 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
227 "SN-Usage-Monitoring-Control", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
228 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
229 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
230 AVP_TYPE_GROUPED /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
231 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
232 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
233 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
234 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
235 /* SN-Monitoring-Key, Unsigned32, code 518 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
236 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
237 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
238 518, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
239 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
240 "SN-Monitoring-Key", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
241 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
242 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
243 AVP_TYPE_UNSIGNED32 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
244 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
245 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
246 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
247 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
248 /* SN-Usage-Volume, Unsigned64, code 519 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
249 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
250 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
251 519, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
252 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
253 "SN-Usage-Volume", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
254 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
255 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
256 AVP_TYPE_UNSIGNED64 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
257 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
258 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
259 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
260 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
261 /* SN-Service-Flow-Detection, Enumerated, code 520 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
262 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
263 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
264 520, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
265 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
266 "SN-Service-Flow-Detection", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
267 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
268 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
269 AVP_TYPE_INTEGER32 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
270 }; |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
271 struct dict_object *type; |
1324
729e5074839f
Consistently start names of Enumerated types with 'Enumerated'.
Thomas Klausner <tk@giga.or.at>
parents:
1276
diff
changeset
|
272 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "Enumerated(Starent/SN-Service-Flow-Detection)", NULL, NULL, NULL }; |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
273 CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
274 CHECK_dict_new(DICT_AVP, &data, type, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
275 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
276 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
277 /* SN-Usage-Monitoring, Enumerated, code 521 */ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
278 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
279 struct dict_avp_data data = { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
280 521, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
281 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
282 "SN-Usage-Monitoring", /* Name */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
283 AVP_FLAG_VENDOR, /* Fixed flags */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
284 AVP_FLAG_VENDOR, /* Fixed flag values */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
285 AVP_TYPE_INTEGER32 /* base type of data */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
286 }; |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
287 struct dict_object *type; |
1324
729e5074839f
Consistently start names of Enumerated types with 'Enumerated'.
Thomas Klausner <tk@giga.or.at>
parents:
1276
diff
changeset
|
288 struct dict_type_data tdata = { AVP_TYPE_INTEGER32, "Enumerated(Starent/SN-Usage-Monitoring)", NULL, NULL, NULL }; |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
289 CHECK_dict_new(DICT_TYPE, &tdata, NULL, &type); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
290 CHECK_dict_new(DICT_AVP, &data, type, NULL); |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
291 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
292 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
293 /* SN-Session-Start-Indicator, OctetString, code 522 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
294 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
295 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
296 522, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
297 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
298 "SN-Session-Start-Indicator", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
299 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
300 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
301 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
302 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
303 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
304 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
305 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
306 /* SN-Phase0-PSAPName, UTF8String, code 523 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
307 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
308 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
309 523, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
310 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
311 "SN-Phase0-PSAPName", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
312 AVP_FLAG_VENDOR, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
313 AVP_FLAG_VENDOR, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
314 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
315 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
316 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
317 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
318 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
319 /* SN-Charging-Id, OctetString, code 525 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
320 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
321 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
322 525, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
323 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
324 "SN-Charging-Id", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
325 AVP_FLAG_VENDOR, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
326 AVP_FLAG_VENDOR, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
327 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
328 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
329 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
330 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
331 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
332 /* SN-Remaining-Service-Unit, Grouped, code 526 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
333 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
334 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
335 526, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
336 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
337 "SN-Remaining-Service-Unit", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
338 AVP_FLAG_VENDOR, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
339 AVP_FLAG_VENDOR, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
340 AVP_TYPE_GROUPED /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
341 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
342 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
343 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
344 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
345 /* SN-Service-Start-Timestamp, Time, code 527 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
346 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
347 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
348 527, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
349 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
350 "SN-Service-Start-Timestamp", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
351 AVP_FLAG_VENDOR, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
352 AVP_FLAG_VENDOR, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
353 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
354 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
355 CHECK_dict_new(DICT_AVP, &data, Time_type, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
356 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
357 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
358 /* SN-Rulebase-Id, UTF8String, code 528 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
359 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
360 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
361 528, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
362 8164, /* Vendor */ |
1276 | 363 "SN-Rulebase-Id", /* Name */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
364 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
365 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
366 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
367 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
368 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
369 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
370 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
371 /* SN-CF-Policy-ID, Unsigned32, code 529 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
372 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
373 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
374 529, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
375 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
376 "SN-CF-Policy-ID", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
377 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
378 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
379 AVP_TYPE_UNSIGNED32 /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
380 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
381 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
382 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
383 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
384 /* SN-Charging-Collection-Function-Name, UTF8String, code 530 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
385 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
386 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
387 530, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
388 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
389 "SN-Charging-Collection-Function-Name", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
390 AVP_FLAG_VENDOR, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
391 AVP_FLAG_VENDOR, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
392 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
393 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
394 CHECK_dict_new(DICT_AVP, &data, UTF8String_type, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
395 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
396 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
397 /* SN-Fast-Reauth-Username, OctetString, code 11010 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
398 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
399 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
400 11010, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
401 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
402 "SN-Fast-Reauth-Username", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
403 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
404 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
405 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
406 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
407 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
408 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
409 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
410 /* SN-Pseudonym-Username, OctetString, code 11011 */ |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
411 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
412 struct dict_avp_data data = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
413 11011, /* Code */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
414 8164, /* Vendor */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
415 "SN-Pseudonym-Username", /* Name */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
416 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flags */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
417 AVP_FLAG_VENDOR |AVP_FLAG_MANDATORY, /* Fixed flag values */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
418 AVP_TYPE_OCTETSTRING /* base type of data */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
419 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
420 CHECK_dict_new(DICT_AVP, &data, NULL, NULL); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
421 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
422 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
423 /*==================================================================*/ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
424 /* End of generated data. */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
425 /*==================================================================*/ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
426 |
1227 | 427 /* Rules section */ |
428 | |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
429 /* SN-Remaining-Service-Unit */ |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
430 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
431 struct dict_object *rule_avp; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
432 struct dict_avp_request vpa; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
433 vpa.avp_vendor = 8164; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
434 vpa.avp_name = "SN-Remaining-Service-Unit"; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
435 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
436 struct local_rules_definition rules[] = { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
437 { "Tariff-Change-Usage", RULE_OPTIONAL, -1, 1 }, |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
438 { "CC-Time", RULE_OPTIONAL, -1, 1 }, |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
439 { "CC-Total-Octets", RULE_OPTIONAL, -1, 1 }, |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
440 { "CC-Input-Octets", RULE_OPTIONAL, -1, 1 }, |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
441 { "CC-Output-Octets", RULE_OPTIONAL, -1, 1 }, |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
442 { "CC-Service-Specific-Units", RULE_OPTIONAL, -1, 1 }, |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
443 { "Reporting-Reason", RULE_OPTIONAL, -1, 1 } |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
444 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
445 PARSE_loc_rules( rules, rule_avp ); |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
446 } |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
447 |
1227 | 448 /* SN-Total-Used-Service-Unit */ |
449 { | |
450 struct dict_object *rule_avp; | |
451 struct dict_avp_request vpa; | |
452 vpa.avp_vendor = 8164; | |
453 vpa.avp_name = "SN-Total-Used-Service-Unit"; | |
454 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp); | |
455 struct local_rules_definition rules[] = { | |
456 { "Tariff-Change-Usage", RULE_OPTIONAL, -1, 1 }, | |
457 { "CC-Time", RULE_OPTIONAL, -1, 1 }, | |
458 { "CC-Total-Octets", RULE_OPTIONAL, -1, 1 }, | |
459 { "CC-Input-Octets", RULE_OPTIONAL, -1, 1 }, | |
460 { "CC-Output-Octets", RULE_OPTIONAL, -1, 1 }, | |
461 { "CC-Service-Specific-Units", RULE_OPTIONAL, -1, 1 }, | |
462 { "Reporting-Reason", RULE_OPTIONAL, -1, 1 } | |
463 }; | |
464 PARSE_loc_rules( rules, rule_avp ); | |
465 } | |
466 | |
467 /* SN-Usage-Monitoring-Control */ | |
468 { | |
469 struct dict_object *rule_avp; | |
470 struct dict_avp_request vpa; | |
471 vpa.avp_vendor = 8164; | |
472 vpa.avp_name = "SN-Usage-Monitoring-Control"; | |
473 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp); | |
474 struct local_rules_definition rules[] = { | |
475 { "SN-Monitoring-Key", RULE_OPTIONAL, -1, 1 }, | |
476 { "SN-Usage-Monitoring", RULE_OPTIONAL, -1, 1 }, | |
477 { "SN-Usage-Volume", RULE_OPTIONAL, -1, 1 }, | |
478 }; | |
479 PARSE_loc_rules( rules, rule_avp ); | |
480 } | |
481 | |
1120
c473581adff2
Cleanup some traces
Sebastien Decugis <sdecugis@freediameter.net>
parents:
962
diff
changeset
|
482 LOG_D( "Extension 'Dictionary definitions for DCCA Starent' initialized"); |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
483 return 0; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
484 } |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
485 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
486 EXTENSION_ENTRY("dict_dcca_starent", dict_dcca_starent_entry, "dict_dcca_3gpp"); |