aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2004-12-22 17:11:04 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2004-12-22 17:11:04 +0000
commit28cf1f0fc34309288a36cf875a343585361f4beb (patch)
treeebd0c453e7fec4702e7a2436bea5846d28f794f9
parentb50d2c5522a37bf45fb273138ff748e7b39167d1 (diff)
downloadipacct-28cf1f0fc34309288a36cf875a343585361f4beb.tar.gz
ipacct-28cf1f0fc34309288a36cf875a343585361f4beb.tar.bz2
New statement "user"
-rw-r--r--src/config.y9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/config.y b/src/config.y
index c8af6c4..4007d5e 100644
--- a/src/config.y
+++ b/src/config.y
@@ -77,6 +77,7 @@ static void register_address(char *name, IPADDR addr, UINT4 netmask);
%token ABSOLUTE
%token BOGUS
%token EOL
+%token USER
%type <number> timeval
%type <ipaddr> host
@@ -106,6 +107,7 @@ stmt : stat_stmt
| host_stmt
| stream_stmt
| defn_stmt
+ | user_stmt
| error /* Actually it is `error EOL' (see yyerrsync) */
{
yyerrsync();
@@ -114,6 +116,12 @@ stmt : stat_stmt
}
;
+user_stmt : USER STRING
+ {
+ user = strdup ($2);
+ }
+ ;
+
stat_stmt : STAT stat_cmd
;
@@ -488,6 +496,7 @@ struct keyword keywords[] = {
"as", AS,
"input", IN,
"output", OUT,
+ "user", USER,
NULL, 0
};

Return to:

Send suggestions and report system problems to the System administrator.