Navigation


Changeset 1012:cafdcbcb5e79 in freeDiameter for libfdcore


Ignore:
Timestamp:
Mar 28, 2013, 12:20:50 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Children:
1013:7b5c46505e09, 1015:8af24e6143ce
Phase:
public
Message:

Allow port value 0 in the configuration to disable a server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/fdd.y

    r974 r1012  
    192192port:                   PORT '=' INTEGER ';'
    193193                        {
    194                                 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 1<<16),
     194                                CHECK_PARAMS_DO( ($3 >= 0) && ($3 < 1<<16),
    195195                                        { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
    196196                                conf->cnf_port = (uint16_t)$3;
     
    200200secport:                SECPORT '=' INTEGER ';'
    201201                        {
    202                                 CHECK_PARAMS_DO( ($3 > 0) && ($3 < 1<<16),
     202                                CHECK_PARAMS_DO( ($3 >= 0) && ($3 < 1<<16),
    203203                                        { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
    204204                                conf->cnf_port_tls = (uint16_t)$3;
Note: See TracChangeset for help on using the changeset viewer.