diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-08 20:55:34 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2009-02-08 20:55:34 +0100 |
commit | 7f902c8419c891ec3ec83d40fb30afccb2a150c6 (patch) | |
tree | 97c0bfcb190c4559d88653502a465412684ae2bd /src/read_config_lex.l | |
parent | d214500c0e5f06587cd2436bf88c93b399df5122 (diff) | |
download | conntrack-tools-7f902c8419c891ec3ec83d40fb30afccb2a150c6.tar.gz conntrack-tools-7f902c8419c891ec3ec83d40fb30afccb2a150c6.zip |
src: add Nice clause to set the nice value
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/read_config_lex.l')
-rw-r--r-- | src/read_config_lex.l | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/read_config_lex.l b/src/read_config_lex.l index 26c6124..a1830fd 100644 --- a/src/read_config_lex.l +++ b/src/read_config_lex.l @@ -35,6 +35,7 @@ nl [\n\r] is_on [o|O][n|N] is_off [o|O][f|F][f|F] integer [0-9]+ +signed_integer [\-\+][0-9]+ path \/[^\"\n ]* ip4_cidr \/[0-2]*[0-9]+ ip4_end [0-9]*[0-9]+ @@ -122,10 +123,12 @@ notrack [N|n][O|o][T|t][R|r][A|a][C|c][K|k] "Default" { return T_DEFAULT; } "PollSecs" { return T_POLL_SECS; } "NetlinkOverrunResync" { return T_NETLINK_OVERRUN_RESYNC; } +"Nice" { return T_NICE; } {is_on} { return T_ON; } {is_off} { return T_OFF; } {integer} { yylval.val = atoi(yytext); return T_NUMBER; } +{signed_integer} { yylval.val = atoi(yytext); return T_SIGNED_NUMBER; } {ip4} { yylval.string = strdup(yytext); return T_IP; } {ip6} { yylval.string = strdup(yytext); return T_IP; } {path} { yylval.string = strdup(yytext); return T_PATH_VAL; } |