Mercurial > hg > freeDiameter
comparison freeDiameter/fdd.y @ 253:ad6c0118fb50
Configurable number of server threads
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 13 Apr 2010 14:50:54 +0900 |
parents | dee0a871abcd |
children | 5df55136361b |
comparison
equal
deleted
inserted
replaced
252:433ef00ac049 | 253:ad6c0118fb50 |
---|---|
102 %token NOSCTP | 102 %token NOSCTP |
103 %token PREFERTCP | 103 %token PREFERTCP |
104 %token OLDTLS | 104 %token OLDTLS |
105 %token NOTLS | 105 %token NOTLS |
106 %token SCTPSTREAMS | 106 %token SCTPSTREAMS |
107 %token APPSERVTHREADS | |
107 %token LISTENON | 108 %token LISTENON |
108 %token TCTIMER | 109 %token TCTIMER |
109 %token TWTIMER | 110 %token TWTIMER |
110 %token NORELAY | 111 %token NORELAY |
111 %token LOADEXT | 112 %token LOADEXT |
130 | conffile port | 131 | conffile port |
131 | conffile secport | 132 | conffile secport |
132 | conffile sctpstreams | 133 | conffile sctpstreams |
133 | conffile listenon | 134 | conffile listenon |
134 | conffile norelay | 135 | conffile norelay |
136 | conffile appservthreads | |
135 | conffile noip | 137 | conffile noip |
136 | conffile noip6 | 138 | conffile noip6 |
137 | conffile notcp | 139 | conffile notcp |
138 | conffile nosctp | 140 | conffile nosctp |
139 | conffile prefertcp | 141 | conffile prefertcp |
228 { | 230 { |
229 conf->cnf_flags.no_fwd = 1; | 231 conf->cnf_flags.no_fwd = 1; |
230 } | 232 } |
231 ; | 233 ; |
232 | 234 |
235 appservthreads: APPSERVTHREADS '=' INTEGER ';' | |
236 { | |
237 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 1024), | |
238 { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); | |
239 conf->cnf_dispthr = (uint16_t)$3; | |
240 } | |
241 ; | |
242 | |
233 noip: NOIP ';' | 243 noip: NOIP ';' |
234 { | 244 { |
235 if (got_peer_noipv6) { | 245 if (got_peer_noipv6) { |
236 yyerror (&yylloc, conf, "No_IP conflicts with a ConnectPeer directive No_IPv6."); | 246 yyerror (&yylloc, conf, "No_IP conflicts with a ConnectPeer directive No_IPv6."); |
237 YYERROR; | 247 YYERROR; |