Changeset 10:c5c99c73c2bf in freeDiameter for freeDiameter/fdd.y
- Timestamp:
- Sep 25, 2009, 4:12:08 PM (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
freeDiameter/fdd.y
r8 r10 63 63 { 64 64 if (ploc->first_line != ploc->last_line) 65 fprintf(stderr, "%s:%d.%d-%d.%d : %s\n", conf->c onf_file, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s);65 fprintf(stderr, "%s:%d.%d-%d.%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, ploc->last_line, ploc->last_column, s); 66 66 else if (ploc->first_column != ploc->last_column) 67 fprintf(stderr, "%s:%d.%d-%d : %s\n", conf->c onf_file, ploc->first_line, ploc->first_column, ploc->last_column, s);67 fprintf(stderr, "%s:%d.%d-%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, ploc->last_column, s); 68 68 else 69 fprintf(stderr, "%s:%d.%d : %s\n", conf->c onf_file, ploc->first_line, ploc->first_column, s);69 fprintf(stderr, "%s:%d.%d : %s\n", conf->cnf_file, ploc->first_line, ploc->first_column, s); 70 70 } 71 71 … … 111 111 | conffile localidentity 112 112 | conffile localrealm 113 | conffile tctimer 114 | conffile twtimer 113 115 | conffile localport 114 116 | conffile localsecport 117 | conffile sctpstreams 118 | conffile listenon 119 | conffile norelay 115 120 | conffile noip 116 121 | conffile noip6 … … 119 124 | conffile prefertcp 120 125 | conffile oldtls 121 | conffile sctpstreams122 | conffile listenon123 | conffile tctimer124 | conffile twtimer125 | conffile norelay126 126 | conffile loadext 127 127 ; … … 129 129 localidentity: LOCALIDENTITY '=' QSTRING ';' 130 130 { 131 conf-> diam_id = $3;131 conf->cnf_diamid = $3; 132 132 } 133 133 ; … … 135 135 localrealm: LOCALREALM '=' QSTRING ';' 136 136 { 137 conf->diam_realm = $3; 137 conf->cnf_diamrlm = $3; 138 } 139 ; 140 141 tctimer: TCTIMER '=' INTEGER ';' 142 { 143 CHECK_PARAMS_DO( ($3 > 0), 144 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 145 conf->cnf_timer_tc = (unsigned int)$3; 146 } 147 ; 148 149 twtimer: TWTIMER '=' INTEGER ';' 150 { 151 CHECK_PARAMS_DO( ($3 > 5), 152 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 153 conf->cnf_timer_tw = (unsigned int)$3; 138 154 } 139 155 ; … … 143 159 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 1<<16), 144 160 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 145 conf-> loc_port = (uint16_t)$3;161 conf->cnf_port = (uint16_t)$3; 146 162 } 147 163 ; … … 151 167 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 1<<16), 152 168 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 153 conf->loc_port_tls = (uint16_t)$3; 154 } 155 ; 156 157 noip: NOIP ';' 158 { 159 conf->flags.no_ip4 = 1; 160 } 161 ; 162 163 noip6: NOIP6 ';' 164 { 165 conf->flags.no_ip6 = 1; 166 } 167 ; 168 169 notcp: NOTCP ';' 170 { 171 conf->flags.no_tcp = 1; 172 } 173 ; 174 175 nosctp: NOSCTP ';' 176 { 177 conf->flags.no_sctp = 1; 178 } 179 ; 180 181 prefertcp: PREFERTCP ';' 182 { 183 conf->flags.pr_tcp = 1; 184 } 185 ; 186 187 oldtls: OLDTLS ';' 188 { 189 conf->flags.tls_alg = 1; 169 conf->cnf_port_tls = (uint16_t)$3; 190 170 } 191 171 ; … … 195 175 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 1<<16), 196 176 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 197 conf-> loc_sctp_str = (uint16_t)$3;177 conf->cnf_sctp_str = (uint16_t)$3; 198 178 } 199 179 ; … … 218 198 free($3); 219 199 freeaddrinfo(ai); 220 fd_list_insert_before(&conf->loc_endpoints, &ep->chain); 221 } 222 ; 223 224 tctimer: TCTIMER '=' INTEGER ';' 225 { 226 CHECK_PARAMS_DO( ($3 > 0), 227 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 228 conf->timer_tc = (unsigned int)$3; 229 } 230 ; 231 232 twtimer: TWTIMER '=' INTEGER ';' 233 { 234 CHECK_PARAMS_DO( ($3 > 5), 235 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); 236 conf->timer_tw = (unsigned int)$3; 200 fd_list_insert_before(&conf->cnf_endpoints, &ep->chain); 237 201 } 238 202 ; … … 240 204 norelay: NORELAY ';' 241 205 { 242 conf->flags.no_fwd = 1; 206 conf->cnf_flags.no_fwd = 1; 207 } 208 ; 209 210 noip: NOIP ';' 211 { 212 conf->cnf_flags.no_ip4 = 1; 213 } 214 ; 215 216 noip6: NOIP6 ';' 217 { 218 conf->cnf_flags.no_ip6 = 1; 219 } 220 ; 221 222 notcp: NOTCP ';' 223 { 224 conf->cnf_flags.no_tcp = 1; 225 } 226 ; 227 228 nosctp: NOSCTP ';' 229 { 230 conf->cnf_flags.no_sctp = 1; 231 } 232 ; 233 234 prefertcp: PREFERTCP ';' 235 { 236 conf->cnf_flags.pr_tcp = 1; 237 } 238 ; 239 240 oldtls: OLDTLS ';' 241 { 242 conf->cnf_flags.tls_alg = 1; 243 243 } 244 244 ;
Note: See TracChangeset
for help on using the changeset viewer.