summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-04-14 16:51:37 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-04-14 16:51:37 +0000
commit91de09d8edd983816ddad595260e4eba2e3bc433 (patch)
tree5701410e540da155327f712dc01e3fa2c0cbb2a5
parentba4fa44541c50ab58796d7de50c3367c50cb65b8 (diff)
if linkshare service curve m2 == bandwidth, but d given, we do need to print
linkshare as it is not exactly the default case then
-rw-r--r--sbin/pfctl/pfctl_altq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index 9889d5f53f5..382874739d8 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.67 2003/04/14 16:35:13 henning Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.68 2003/04/14 16:51:36 henning Exp $ */
/*
* Copyright (C) 2002
@@ -829,7 +829,7 @@ print_hfsc_opts(const struct pf_altq *a)
if (opts->flags || opts->rtsc_m2 != 0 || opts->ulsc_m2 != 0 ||
(opts->lssc_m2 != 0 && (opts->lssc_m2 != a->bandwidth ||
- (opts->lssc_m2 != a->bandwidth && opts->lssc_m1 != 0)))) {
+ opts->lssc_d != 0))) {
printf("hfsc(");
if (opts->flags & HFCF_RED)
printf(" red");
@@ -852,7 +852,7 @@ print_hfsc_opts(const struct pf_altq *a)
rate2str((double)opts->rtsc_m2));
}
if (opts->lssc_m2 != 0 && (opts->lssc_m2 != a->bandwidth ||
- (opts->lssc_m2 != a->bandwidth && opts->lssc_m1 != 0))) {
+ opts->lssc_d != 0)) {
if (opts->lssc_d != 0)
printf(" linkshare(%s %ums %s)",
rate2str((double)opts->lssc_m1),