Mercurial > hg > freeDiameter
comparison extensions/test_app/ta_conf.y @ 1214:c2fbaf2985f4
New options to test_app extension to generate long Diameter messages
author | Sebastien Decugis <sdecugis@freediameter.net> |
---|---|
date | Tue, 18 Jun 2013 16:27:45 +0800 |
parents | 1af09cc156d6 |
children |
comparison
equal
deleted
inserted
replaced
1213:b1c4876b1896 | 1214:c2fbaf2985f4 |
---|---|
118 /* Key words */ | 118 /* Key words */ |
119 %token VENDOR_ID | 119 %token VENDOR_ID |
120 %token APPLI_ID | 120 %token APPLI_ID |
121 %token CMD_ID | 121 %token CMD_ID |
122 %token AVP_ID | 122 %token AVP_ID |
123 %token LONG_AVP_ID | |
124 %token LONG_AVP_LEN | |
123 %token MODE | 125 %token MODE |
124 %token DEST_REALM | 126 %token DEST_REALM |
125 %token DEST_HOST | 127 %token DEST_HOST |
126 %token USER_NAME | 128 %token USER_NAME |
127 %token SIGNAL | 129 %token SIGNAL |
143 conffile: /* empty grammar is OK */ | 145 conffile: /* empty grammar is OK */ |
144 | conffile vendor | 146 | conffile vendor |
145 | conffile appli | 147 | conffile appli |
146 | conffile cmd | 148 | conffile cmd |
147 | conffile avp | 149 | conffile avp |
150 | conffile long_avp_id | |
151 | conffile long_avp_len | |
148 | conffile mode | 152 | conffile mode |
149 | conffile dstrealm | 153 | conffile dstrealm |
150 | conffile dsthost | 154 | conffile dsthost |
151 | conffile usrname | 155 | conffile usrname |
152 | conffile signal | 156 | conffile signal |
175 { | 179 { |
176 ta_conf->avp_id = $3; | 180 ta_conf->avp_id = $3; |
177 } | 181 } |
178 ; | 182 ; |
179 | 183 |
184 long_avp_id: LONG_AVP_ID '=' INTEGER ';' | |
185 { | |
186 ta_conf->long_avp_id = $3; | |
187 } | |
188 ; | |
189 | |
190 long_avp_len: LONG_AVP_LEN '=' INTEGER ';' | |
191 { | |
192 ta_conf->long_avp_len = $3; | |
193 } | |
194 ; | |
195 | |
180 mode: MODE '=' INTEGER ';' | 196 mode: MODE '=' INTEGER ';' |
181 { | 197 { |
182 ta_conf->mode = $3 | (ta_conf->mode & ~3); /* overwrite the 2 lsb */ | 198 ta_conf->mode = $3 | (ta_conf->mode & ~3); /* overwrite the 2 lsb */ |
183 } | 199 } |
184 ; | 200 ; |