Mercurial > hg > freeDiameter
annotate extensions/dict_dcca_starent/dict_dcca_starent.c @ 1470:b98c9de78f58
regen dict_dcca_3gpp and dict_dcca_starent
Regen from the .csv files instead of the .org files.
No change to generated dictionary.
author | Luke Mewburn <luke@mewburn.net> |
---|---|
date | Wed, 18 Mar 2020 11:48:00 +1100 |
parents | 4bd30996ad7f |
children | 71cc2c59e7dc |
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: */ |
1470
b98c9de78f58
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1435
diff
changeset
|
91 /* csv_to_fd -p fdc dict_dcca_starent.csv */ |
1435
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. */ |
1470
b98c9de78f58
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1435
diff
changeset
|
93 /* Do not modify; modify the source .csv file instead. */ |
1435
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 |
1470
b98c9de78f58
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1435
diff
changeset
|
96 /*==================================================================*/ |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
97 /* Cisco ASR 5000 Series AAA Interface */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
98 /* Administration and Reference */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
99 /* Release 8.x and 9.0 */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
100 /* Last Updated June 30, 2010 */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
101 /* 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
|
102 /* www.cisco.com/c/dam/en/us/td/docs/wireless/asr_5000/15-0/15-0-AAA-Reference.pdf */ |
1470
b98c9de78f58
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1435
diff
changeset
|
103 /*==================================================================*/ |
b98c9de78f58
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1435
diff
changeset
|
104 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
105 /* 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
|
106 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
107 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
|
108 501, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
109 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
110 "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
|
111 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
|
112 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
|
113 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
|
114 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
115 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
|
116 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
117 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
118 /* 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
|
119 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
120 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
|
121 502, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
122 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
123 "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
|
124 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
|
125 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
|
126 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
|
127 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
128 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
|
129 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
130 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
131 /* 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
|
132 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
133 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
|
134 503, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
135 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
136 "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
|
137 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
|
138 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
|
139 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
|
140 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
141 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
|
142 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
143 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
144 /* 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
|
145 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
146 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
|
147 504, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
148 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
149 "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
|
150 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
|
151 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
|
152 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
|
153 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
154 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
|
155 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
156 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
157 /* 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
|
158 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
159 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
|
160 505, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
161 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
162 "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
|
163 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
|
164 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
|
165 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
|
166 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
167 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
|
168 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
169 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
170 /* 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
|
171 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
172 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
|
173 512, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
174 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
175 "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
|
176 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
|
177 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
|
178 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
|
179 }; |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
180 struct dict_object *type; |
1324
729e5074839f
Consistently start names of Enumerated types with 'Enumerated'.
Thomas Klausner <tk@giga.or.at>
parents:
1276
diff
changeset
|
181 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
|
182 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
|
183 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
|
184 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
185 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
186 /* 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
|
187 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
188 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
|
189 513, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
190 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
191 "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
|
192 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
|
193 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
|
194 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
|
195 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
196 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
|
197 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
198 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
199 /* 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
|
200 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
201 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
|
202 514, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
203 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
204 "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
|
205 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
|
206 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
|
207 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
|
208 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
209 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
|
210 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
211 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
212 /* 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
|
213 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
214 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
|
215 515, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
216 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
217 "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
|
218 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
|
219 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
|
220 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
|
221 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
222 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
|
223 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
224 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
225 /* 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
|
226 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
227 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
|
228 517, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
229 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
230 "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
|
231 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
|
232 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
|
233 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
|
234 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
235 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
|
236 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
237 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
238 /* 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
|
239 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
240 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
|
241 518, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
242 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
243 "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
|
244 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
|
245 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
|
246 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
|
247 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
248 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
|
249 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
250 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
251 /* 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
|
252 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
253 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
|
254 519, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
255 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
256 "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
|
257 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
|
258 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
|
259 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
|
260 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
261 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
|
262 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
263 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
264 /* 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
|
265 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
266 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
|
267 520, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
268 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
269 "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
|
270 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
|
271 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
|
272 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
|
273 }; |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
274 struct dict_object *type; |
1324
729e5074839f
Consistently start names of Enumerated types with 'Enumerated'.
Thomas Klausner <tk@giga.or.at>
parents:
1276
diff
changeset
|
275 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
|
276 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
|
277 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
|
278 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
279 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
280 /* 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
|
281 { |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
282 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
|
283 521, /* Code */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
284 8164, /* Vendor */ |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
285 "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
|
286 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
|
287 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
|
288 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
|
289 }; |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
290 struct dict_object *type; |
1324
729e5074839f
Consistently start names of Enumerated types with 'Enumerated'.
Thomas Klausner <tk@giga.or.at>
parents:
1276
diff
changeset
|
291 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
|
292 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
|
293 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
|
294 }; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
295 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
296 /* 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
|
297 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
298 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
|
299 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
|
300 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
|
301 "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
|
302 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
|
303 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
|
304 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
|
305 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
306 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
309 /* 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
|
310 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
311 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
|
312 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
|
313 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
|
314 "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
|
315 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
|
316 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
|
317 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
|
318 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
319 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
322 /* 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
|
323 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
324 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
|
325 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
|
326 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
|
327 "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
|
328 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
|
329 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
|
330 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
|
331 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
332 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
335 /* 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
|
336 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
337 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
|
338 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
|
339 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
|
340 "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
|
341 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
|
342 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
|
343 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
|
344 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
345 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
348 /* 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
|
349 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
350 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
|
351 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
|
352 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
|
353 "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
|
354 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
|
355 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
|
356 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
|
357 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
358 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
361 /* 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
|
362 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
363 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
|
364 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
|
365 8164, /* Vendor */ |
1276 | 366 "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
|
367 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
|
368 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
|
369 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
|
370 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
371 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
374 /* 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
|
375 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
376 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
|
377 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
|
378 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
|
379 "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
|
380 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
|
381 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
|
382 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
|
383 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
384 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
387 /* 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
|
388 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
389 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
|
390 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
|
391 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
|
392 "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
|
393 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
|
394 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
|
395 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
|
396 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
397 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
400 /* 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
|
401 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
402 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
|
403 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
|
404 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
|
405 "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
|
406 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
|
407 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
|
408 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
|
409 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
410 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
|
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 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
413 /* 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
|
414 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
415 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
|
416 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
|
417 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
|
418 "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
|
419 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
|
420 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
|
421 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
|
422 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
423 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
|
424 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
425 |
1435
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
426 /*==================================================================*/ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
427 /* End of generated data. */ |
4bd30996ad7f
regen dict_dcca_3gpp and dict_dcca_starent
Luke Mewburn <luke@mewburn.net>
parents:
1324
diff
changeset
|
428 /*==================================================================*/ |
962
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
429 |
1227 | 430 /* Rules section */ |
431 | |
1275
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
432 /* 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
|
433 { |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
434 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
|
435 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
|
436 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
|
437 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
|
438 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
|
439 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
|
440 { "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
|
441 { "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
|
442 { "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
|
443 { "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
|
444 { "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
|
445 { "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
|
446 { "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
|
447 }; |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
448 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
|
449 } |
62bd95182f6d
Add more Starent AVPs, from Cisco's v15 documentation. Add one rule.
Thomas Klausner <tk@giga.or.at>
parents:
1227
diff
changeset
|
450 |
1227 | 451 /* SN-Total-Used-Service-Unit */ |
452 { | |
453 struct dict_object *rule_avp; | |
454 struct dict_avp_request vpa; | |
455 vpa.avp_vendor = 8164; | |
456 vpa.avp_name = "SN-Total-Used-Service-Unit"; | |
457 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp); | |
458 struct local_rules_definition rules[] = { | |
459 { "Tariff-Change-Usage", RULE_OPTIONAL, -1, 1 }, | |
460 { "CC-Time", RULE_OPTIONAL, -1, 1 }, | |
461 { "CC-Total-Octets", RULE_OPTIONAL, -1, 1 }, | |
462 { "CC-Input-Octets", RULE_OPTIONAL, -1, 1 }, | |
463 { "CC-Output-Octets", RULE_OPTIONAL, -1, 1 }, | |
464 { "CC-Service-Specific-Units", RULE_OPTIONAL, -1, 1 }, | |
465 { "Reporting-Reason", RULE_OPTIONAL, -1, 1 } | |
466 }; | |
467 PARSE_loc_rules( rules, rule_avp ); | |
468 } | |
469 | |
470 /* SN-Usage-Monitoring-Control */ | |
471 { | |
472 struct dict_object *rule_avp; | |
473 struct dict_avp_request vpa; | |
474 vpa.avp_vendor = 8164; | |
475 vpa.avp_name = "SN-Usage-Monitoring-Control"; | |
476 CHECK_dict_search(DICT_AVP, AVP_BY_NAME_AND_VENDOR, &vpa, &rule_avp); | |
477 struct local_rules_definition rules[] = { | |
478 { "SN-Monitoring-Key", RULE_OPTIONAL, -1, 1 }, | |
479 { "SN-Usage-Monitoring", RULE_OPTIONAL, -1, 1 }, | |
480 { "SN-Usage-Volume", RULE_OPTIONAL, -1, 1 }, | |
481 }; | |
482 PARSE_loc_rules( rules, rule_avp ); | |
483 } | |
484 | |
1120
c473581adff2
Cleanup some traces
Sebastien Decugis <sdecugis@freediameter.net>
parents:
962
diff
changeset
|
485 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
|
486 return 0; |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
487 } |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
488 |
398e9b1ebf87
Add a dictionary for Starent vendor specific AVPs, following publicly available
Thomas Klausner <tk@giga.or.at>
parents:
diff
changeset
|
489 EXTENSION_ENTRY("dict_dcca_starent", dict_dcca_starent_entry, "dict_dcca_3gpp"); |