diff options
author | 2002-11-27 15:49:16 +0000 | |
---|---|---|
committer | 2002-11-27 15:49:16 +0000 | |
commit | 7d039f1494fe0ada3a27a65c70da6770000c3dbf (patch) | |
tree | 33842df0909d1a36961df63dba3d19c964d0ba2f | |
parent | Make sure daemon() does not close any fd opened during initialization. (diff) | |
download | wireguard-openbsd-7d039f1494fe0ada3a27a65c70da6770000c3dbf.tar.xz wireguard-openbsd-7d039f1494fe0ada3a27a65c70da6770000c3dbf.zip |
use a #define for default priority instead of hardcoding it
-rw-r--r-- | sbin/pfctl/parse.y | 4 | ||||
-rw-r--r-- | sbin/pfctl/pfctl_altq.h | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sbin/pfctl/parse.y b/sbin/pfctl/parse.y index 8460d05415b..c565d193623 100644 --- a/sbin/pfctl/parse.y +++ b/sbin/pfctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.219 2002/11/27 14:39:06 henning Exp $ */ +/* $OpenBSD: parse.y,v 1.220 2002/11/27 15:49:16 henning Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -660,7 +660,7 @@ bandwidth : /* empty */ { } ; -priority : /* empty */ { $$ = 1; } +priority : /* empty */ { $$ = DEFAULT_PRIORITY; } | PRIORITY number { if ($2 > 255) { yyerror("priority out of range: max 255"); diff --git a/sbin/pfctl/pfctl_altq.h b/sbin/pfctl/pfctl_altq.h index a4288ad0449..60243023997 100644 --- a/sbin/pfctl/pfctl_altq.h +++ b/sbin/pfctl/pfctl_altq.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.h,v 1.1 2002/11/18 22:49:15 henning Exp $ */ +/* $OpenBSD: pfctl_altq.h,v 1.2 2002/11/27 15:49:17 henning Exp $ */ /* * Copyright (C) 2002 * Sony Computer Science Laboratories Inc. All rights reserved. @@ -75,6 +75,10 @@ #define REDF_FLOWVALVE 0x04 /* use flowvalve (aka penalty-box) */ #endif +#ifndef DEFAULT_PRIORITY +#define DEFAULT_PRIORITY 1 +#endif + struct pf_altq_node { struct pf_altq altq; struct pf_altq_node *next; |