Mercurial > hg > freeDiameter
diff 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 |
line wrap: on
line diff
--- a/freeDiameter/fdd.y Fri Apr 02 17:28:20 2010 +0900 +++ b/freeDiameter/fdd.y Tue Apr 13 14:50:54 2010 +0900 @@ -104,6 +104,7 @@ %token OLDTLS %token NOTLS %token SCTPSTREAMS +%token APPSERVTHREADS %token LISTENON %token TCTIMER %token TWTIMER @@ -132,6 +133,7 @@ | conffile sctpstreams | conffile listenon | conffile norelay + | conffile appservthreads | conffile noip | conffile noip6 | conffile notcp @@ -230,6 +232,14 @@ } ; +appservthreads: APPSERVTHREADS '=' INTEGER ';' + { + CHECK_PARAMS_DO( ($3 > 0) && ($3 < 1024), + { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } ); + conf->cnf_dispthr = (uint16_t)$3; + } + ; + noip: NOIP ';' { if (got_peer_noipv6) {