Navigation


Changeset 572:b1b56d4682d0 in freeDiameter for extensions/test_app/ta_conf.y


Ignore:
Timestamp:
Oct 8, 2010, 3:30:36 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Added benchmark mode in test_app

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/test_app/ta_conf.y

    r127 r572  
    126126%token          USER_NAME
    127127%token          SIGNAL
     128%token          BENCH
    128129
    129130/* Tokens and types for routing table definition */
     
    150151                        | conffile usrname
    151152                        | conffile signal
     153                        | conffile bench
    152154                        ;
    153155
     
    178180mode:                   MODE '=' INTEGER ';'
    179181                        {
    180                                 ta_conf->mode = $3;
     182                                ta_conf->mode = $3 | (ta_conf->mode & ~3); /* overwrite the 2 lsb */
     183                        }
     184                        ;
     185
     186bench:                  BENCH ';'
     187                        {
     188                                ta_conf->mode |= MODE_BENCH;
    181189                        }
    182190                        ;
Note: See TracChangeset for help on using the changeset viewer.