comparison 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
comparison
equal deleted inserted replaced
1325:ae81cd81ab09 1326:afe0ecdb0692
119 %token TLS_CA 119 %token TLS_CA
120 %token TLS_CRL 120 %token TLS_CRL
121 %token TLS_PRIO 121 %token TLS_PRIO
122 %token TLS_DH_BITS 122 %token TLS_DH_BITS
123 %token TLS_DH_FILE 123 %token TLS_DH_FILE
124 %token RR_IN_ANSWERS
125 %token ALWAYS
126 %token NEVER
124 127
125 128
126 /* -------------------------------------- */ 129 /* -------------------------------------- */
127 %% 130 %%
128 131
151 | conffile tls_cred 154 | conffile tls_cred
152 | conffile tls_ca 155 | conffile tls_ca
153 | conffile tls_crl 156 | conffile tls_crl
154 | conffile tls_prio 157 | conffile tls_prio
155 | conffile tls_dh 158 | conffile tls_dh
159 | conffile rr_in_answers
156 | conffile errors 160 | conffile errors
157 { 161 {
158 yyerror(&yylloc, conf, "An error occurred while parsing the configuration file"); 162 yyerror(&yylloc, conf, "An error occurred while parsing the configuration file");
159 return EINVAL; 163 return EINVAL;
160 } 164 }
663 YYERROR; 667 YYERROR;
664 } 668 }
665 fclose(fd); 669 fclose(fd);
666 } 670 }
667 ; 671 ;
672
673 rr_values: ALWAYS
674 {
675 conf->cnf_rr_in_answers = 1;
676 }
677 | NEVER
678 {
679 conf->cnf_rr_in_answers = 0;
680 }
681 ;
682
683 rr_in_answers: RR_IN_ANSWERS '=' rr_values ';'
684 ;
"Welcome to our mercurial repository"