summaryrefslogtreecommitdiff
path: root/src/read_config_lex.l
diff options
context:
space:
mode:
author/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-12-21 18:04:49 +0000
committer/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org </C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org>2007-12-21 18:04:49 +0000
commit5bac4f06e8ebc81ed16ec93a0db8682e6a359608 (patch)
treeb9d97d47f41e11f1c16f35a32347dbfdb404736f /src/read_config_lex.l
parent6d37133f5c98dadf6eb17f7f6854290f572dd4ad (diff)
downloadconntrack-tools-5bac4f06e8ebc81ed16ec93a0db8682e6a359608.tar.gz
conntrack-tools-5bac4f06e8ebc81ed16ec93a0db8682e6a359608.zip
o Use more appropriate names for the existing synchronization modes:
o rename `persistent' mode to `alarm' o rename `nack' mode to `ftfw' o Now default synchronization mode is ftfw instead of alarm
Diffstat (limited to 'src/read_config_lex.l')
-rw-r--r--src/read_config_lex.l14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/read_config_lex.l b/src/read_config_lex.l
index 844cae1..55794a8 100644
--- a/src/read_config_lex.l
+++ b/src/read_config_lex.l
@@ -45,6 +45,8 @@ ip6 {ip6_form1}|{ip6_form2}
string [a-zA-Z][a-zA-Z0-9]*
persistent [P|p][E|e][R|r][S|s][I|i][S|s][T|t][E|e][N|n][T|T]
nack [N|n][A|a][C|c][K|k]
+alarm [A|a][L|l][A|a][R|r][M|m]
+ftfw [F|f][T|t][F|f][W|w]
%%
"UNIX" { return T_UNIX; }
@@ -107,8 +109,16 @@ nack [N|n][A|a][C|c][K|k]
{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; }
-{persistent} { return T_PERSISTENT; }
-{nack} { return T_NACK; }
+{alarm} { return T_ALARM; }
+{persistent} { printf("WARNING: Now `persistent' mode is called "
+ "`alarm'. Please, update your "
+ "your conntrackd.conf file.\n");
+ return T_ALARM; }
+{ftfw} { return T_FTFW; }
+{nack} { printf("WARNING: Now `nack' mode is called "
+ "`ftfw'. Please, update your "
+ "your conntrackd.conf file.\n");
+ return T_FTFW; }
{string} { yylval.string = strdup(yytext); return T_STRING; }
{comment} ;