Navigation


Changeset 1180:773498f59520 in freeDiameter for libfdcore/fdd.y


Ignore:
Timestamp:
Jun 5, 2013, 4:02:29 PM (11 years ago)
Author:
Sebastien Decugis <sdecugis@freediameter.net>
Branch:
default
Phase:
public
Message:

Preparing for future DTLS/SCTP support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/fdd.y

    r1012 r1180  
    9898%token          PORT
    9999%token          SECPORT
     100%token          SEC3436
    100101%token          NOIP
    101102%token          NOIP6
     
    133134                        | conffile port
    134135                        | conffile secport
     136                        | conffile sec3436
    135137                        | conffile sctpstreams
    136138                        | conffile listenon
     
    203205                                        { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
    204206                                conf->cnf_port_tls = (uint16_t)$3;
     207                        }
     208                        ;
     209
     210sec3436:                SEC3436 '=' INTEGER ';'
     211                        {
     212                                CHECK_PARAMS_DO( ($3 >= 0) && ($3 < 1<<16),
     213                                        { yyerror (&yylloc, conf, "Invalid value"); YYERROR; } );
     214                                conf->cnf_port_3436 = (uint16_t)$3;
    205215                        }
    206216                        ;
     
    453463                                fddpi.config.pic_flags.sec |= PI_SEC_NONE;
    454464                        }
     465                        | peerparams SEC3436 ';'
     466                        {
     467                                fddpi.config.pic_flags.sctpsec |= PI_SCTPSEC_3436;
     468                        }
    455469                        | peerparams REALM '=' QSTRING ';'
    456470                        {
Note: See TracChangeset for help on using the changeset viewer.