summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-11-28 14:44:57 +0000
committerhenning <henning@openbsd.org>2002-11-28 14:44:57 +0000
commit320e9d204c8d42938f7bd4ec6b3fba87f91fa30b (patch)
tree4a9564671a5e2a40132897cc623936b1050a05a8
parentallow qlimit on altq spec (diff)
downloadwireguard-openbsd-320e9d204c8d42938f7bd4ec6b3fba87f91fa30b.tar.xz
wireguard-openbsd-320e9d204c8d42938f7bd4ec6b3fba87f91fa30b.zip
print qlimit on altq if not equal to the default value
-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