Mercurial > hg > freeDiameter
diff 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 |
line wrap: on
line diff
--- a/extensions/test_app/ta_conf.y Tue Jun 18 12:44:30 2013 +0800 +++ b/extensions/test_app/ta_conf.y Tue Jun 18 16:27:45 2013 +0800 @@ -120,6 +120,8 @@ %token APPLI_ID %token CMD_ID %token AVP_ID +%token LONG_AVP_ID +%token LONG_AVP_LEN %token MODE %token DEST_REALM %token DEST_HOST @@ -145,6 +147,8 @@ | conffile appli | conffile cmd | conffile avp + | conffile long_avp_id + | conffile long_avp_len | conffile mode | conffile dstrealm | conffile dsthost @@ -177,6 +181,18 @@ } ; +long_avp_id: LONG_AVP_ID '=' INTEGER ';' + { + ta_conf->long_avp_id = $3; + } + ; + +long_avp_len: LONG_AVP_LEN '=' INTEGER ';' + { + ta_conf->long_avp_len = $3; + } + ; + mode: MODE '=' INTEGER ';' { ta_conf->mode = $3 | (ta_conf->mode & ~3); /* overwrite the 2 lsb */