Mercurial > hg > freeDiameter
diff libfdcore/fdd.y @ 1326:afe0ecdb0692
Add config option if Route-Record AVPs should be added in Answers.
Some software does not handle them correctly.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Mon, 27 Nov 2017 15:18:57 +0100 |
parents | ab6457399be2 |
children | 188c82b6690b |
line wrap: on
line diff
--- a/libfdcore/fdd.y Mon Nov 27 15:16:30 2017 +0100 +++ b/libfdcore/fdd.y Mon Nov 27 15:18:57 2017 +0100 @@ -121,6 +121,9 @@ %token TLS_PRIO %token TLS_DH_BITS %token TLS_DH_FILE +%token RR_IN_ANSWERS +%token ALWAYS +%token NEVER /* -------------------------------------- */ @@ -153,6 +156,7 @@ | conffile tls_crl | conffile tls_prio | conffile tls_dh + | conffile rr_in_answers | conffile errors { yyerror(&yylloc, conf, "An error occurred while parsing the configuration file"); @@ -665,3 +669,16 @@ fclose(fd); } ; + +rr_values: ALWAYS + { + conf->cnf_rr_in_answers = 1; + } + | NEVER + { + conf->cnf_rr_in_answers = 0; + } + ; + +rr_in_answers: RR_IN_ANSWERS '=' rr_values ';' + ;