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