Commit 4dc04dc6 authored by Vitezslav Kriz's avatar Vitezslav Kriz

zone-size-limit: update knot1to2

parent 8d991333
This diff is collapsed.
......@@ -95,6 +95,7 @@ notify-retries { lval.t = yytext; return NOTIFY_RETRIES; }
notify-timeout { lval.t = yytext; return NOTIFY_TIMEOUT; }
zonefile-sync { lval.t = yytext; return DBSYNC_TIMEOUT; }
ixfr-fslimit { lval.t = yytext; return IXFR_FSLIMIT; }
max-zone-size { lval.t = yytext; return MAX_ZONE_SIZE; }
xfr-in { lval.t = yytext; return XFR_IN; }
xfr-out { lval.t = yytext; return XFR_OUT; }
update-in { lval.t = yytext; return UPDATE_IN; }
......
This diff is collapsed.
......@@ -77,41 +77,42 @@ extern int cf_debug;
NOTIFY_TIMEOUT = 287,
DBSYNC_TIMEOUT = 288,
IXFR_FSLIMIT = 289,
XFR_IN = 290,
XFR_OUT = 291,
UPDATE_IN = 292,
NOTIFY_IN = 293,
NOTIFY_OUT = 294,
BUILD_DIFFS = 295,
MAX_CONN_IDLE = 296,
MAX_CONN_HS = 297,
MAX_CONN_REPLY = 298,
MAX_TCP_CLIENTS = 299,
RATE_LIMIT = 300,
RATE_LIMIT_SIZE = 301,
RATE_LIMIT_SLIP = 302,
TRANSFERS = 303,
STORAGE = 304,
TIMER_DB = 305,
DNSSEC_ENABLE = 306,
DNSSEC_KEYDIR = 307,
SIGNATURE_LIFETIME = 308,
SERIAL_POLICY = 309,
SERIAL_POLICY_VAL = 310,
QUERY_MODULE = 311,
INTERFACES = 312,
ADDRESS = 313,
PORT = 314,
IPA = 315,
IPA6 = 316,
VIA = 317,
CONTROL = 318,
ALLOW = 319,
LISTEN_ON = 320,
LOG = 321,
LOG_DEST = 322,
LOG_SRC = 323,
LOG_LEVEL = 324
MAX_ZONE_SIZE = 290,
XFR_IN = 291,
XFR_OUT = 292,
UPDATE_IN = 293,
NOTIFY_IN = 294,
NOTIFY_OUT = 295,
BUILD_DIFFS = 296,
MAX_CONN_IDLE = 297,
MAX_CONN_HS = 298,
MAX_CONN_REPLY = 299,
MAX_TCP_CLIENTS = 300,
RATE_LIMIT = 301,
RATE_LIMIT_SIZE = 302,
RATE_LIMIT_SLIP = 303,
TRANSFERS = 304,
STORAGE = 305,
TIMER_DB = 306,
DNSSEC_ENABLE = 307,
DNSSEC_KEYDIR = 308,
SIGNATURE_LIFETIME = 309,
SERIAL_POLICY = 310,
SERIAL_POLICY_VAL = 311,
QUERY_MODULE = 312,
INTERFACES = 313,
ADDRESS = 314,
PORT = 315,
IPA = 316,
IPA6 = 317,
VIA = 318,
CONTROL = 319,
ALLOW = 320,
LISTEN_ON = 321,
LOG = 322,
LOG_DEST = 323,
LOG_SRC = 324,
LOG_LEVEL = 325
};
#endif
......@@ -128,7 +129,7 @@ union YYSTYPE
size_t l;
} tok;
#line 132 "cf-parse.tab.h" /* yacc.c:1909 */
#line 133 "cf-parse.tab.h" /* yacc.c:1909 */
};
typedef union YYSTYPE YYSTYPE;
......
......@@ -384,6 +384,7 @@ static void grp_add(void *scanner, const char *value)
%token <tok> NOTIFY_TIMEOUT
%token <tok> DBSYNC_TIMEOUT
%token <tok> IXFR_FSLIMIT
%token <tok> MAX_ZONE_SIZE
%token <tok> XFR_IN
%token <tok> XFR_OUT
%token <tok> UPDATE_IN
......@@ -658,6 +659,8 @@ zone:
| zone SEMANTIC_CHECKS BOOL ';' { f_bool(scanner, R_ZONE, C_SEM_CHECKS, $3.i); }
| zone IXFR_FSLIMIT SIZE ';' { f_int(scanner, R_ZONE, C_MAX_JOURNAL_SIZE, $3.l); }
| zone IXFR_FSLIMIT NUM ';' { f_int(scanner, R_ZONE, C_MAX_JOURNAL_SIZE, $3.i); }
| zone MAX_ZONE_SIZE SIZE ';' { f_int(scanner, R_ZONE, C_MAX_ZONE_SIZE, $3.l); }
| zone MAX_ZONE_SIZE NUM ';' { f_int(scanner, R_ZONE, C_MAX_ZONE_SIZE, $3.i); }
| zone DBSYNC_TIMEOUT NUM ';' { f_int(scanner, R_ZONE, C_ZONEFILE_SYNC, $3.i); }
| zone DBSYNC_TIMEOUT INTERVAL ';' { f_int(scanner, R_ZONE, C_ZONEFILE_SYNC, $3.i); }
| zone STORAGE TEXT ';' { f_quote(scanner, R_ZONE, C_STORAGE, $3.t); free($3.t); }
......@@ -696,6 +699,8 @@ zones:
| zones SEMANTIC_CHECKS BOOL ';' { f_bool(scanner, R_ZONE_TPL, C_SEM_CHECKS, $3.i); }
| zones IXFR_FSLIMIT SIZE ';' { f_int(scanner, R_ZONE_TPL, C_MAX_JOURNAL_SIZE, $3.l); }
| zones IXFR_FSLIMIT NUM ';' { f_int(scanner, R_ZONE_TPL, C_MAX_JOURNAL_SIZE, $3.i); }
| zones MAX_ZONE_SIZE SIZE ';' { f_int(scanner, R_ZONE_TPL, C_MAX_ZONE_SIZE, $3.l); }
| zones MAX_ZONE_SIZE NUM ';' { f_int(scanner, R_ZONE_TPL, C_MAX_ZONE_SIZE, $3.i); }
| zones DBSYNC_TIMEOUT NUM ';' { f_int(scanner, R_ZONE_TPL, C_ZONEFILE_SYNC, $3.i); }
| zones DBSYNC_TIMEOUT INTERVAL ';' { f_int(scanner, R_ZONE_TPL, C_ZONEFILE_SYNC, $3.i); }
| zones STORAGE TEXT ';' { f_quote(scanner, R_ZONE_TPL, C_STORAGE, $3.t); free($3.t); }
......
......@@ -73,6 +73,7 @@ typedef enum {
#define C_LOG "\x03""log"
#define C_MASTER "\x06""master"
#define C_MAX_JOURNAL_SIZE "\x10""max-journal-size"
#define C_MAX_ZONE_SIZE "\x0D""max-zone-size"
#define C_MAX_TCP_CLIENTS "\x0F""max-tcp-clients"
#define C_MAX_UDP_PAYLOAD "\x0F""max-udp-payload"
#define C_MODULE "\x06""module"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment