summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-11-28 14:44:58 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-11-28 14:44:58 +0000
commit8c435247999f6bd33c7eb01ea6482cbb5fba8615 (patch)
tree4aa4f99af6e8611534b8225cc8270f522b4144a4 /sbin
parentbabb0aba425848be9ad1da43291b73c80d358a0d (diff)
print qlimit on altq if not equal to the default value
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pfctl/pfctl_altq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index 4c31aeeb7ba..92fb2d9a398 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.12 2002/11/27 16:23:01 henning Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.13 2002/11/28 14:44:57 henning Exp $ */
/*
* Copyright (C) 2002
* Sony Computer Science Laboratories Inc. All rights reserved.
@@ -153,6 +153,8 @@ print_altq(const struct pf_altq *a, unsigned level)
printf("bandwidth %s tbrsize %u ", rate2str((double)a->ifbandwidth),
a->tbrsize);
+ if (a->qlimit != DEFAULT_QLIMIT)
+ printf("qlimit %u ", a->qlimit);
}
void