diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-27 16:23:02 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-11-27 16:23:02 +0000 |
commit | 771b3db296fb935b2ca4a73dc850981018e7f529 (patch) | |
tree | d27e17ea1ec359b8c7ac1b05e3af0ceba2014217 /sbin/pfctl/parse.y | |
parent | 0510fdf81d03191735c5e0143530dc90cb494e07 (diff) |
-use a #define for default qlimit instead of hardcoding it
-print qlimit in print_queue if it is not the default one
-assign the default qlimit early in the parser instead of using 0
Diffstat (limited to 'sbin/pfctl/parse.y')
-rw-r--r-- | sbin/pfctl/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 1e82be489e0..c48025feed8 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.221 2002/11/27 16:06:20 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.222 2002/11/27 16:23:01 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -670,7 +670,7 @@ priority : /* empty */ { $$ = DEFAULT_PRIORITY; } } ; -qlimit : /* empty */ { $$ = 0; } +qlimit : /* empty */ { $$ = DEFAULT_QLIMIT; } | QLIMIT number { if ($2 > 65535) { yyerror("qlimit out of range: max 65535"); |