diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/pfctl/pfctl_altq.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c index 3d10d8b72b2..9889d5f53f5 100644 --- a/sbin/pfctl/pfctl_altq.c +++ b/sbin/pfctl/pfctl_altq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_altq.c,v 1.66 2003/04/14 15:50:53 kjc Exp $ */ +/* $OpenBSD: pfctl_altq.c,v 1.67 2003/04/14 16:35:13 henning Exp $ */ /* * Copyright (C) 2002 @@ -827,8 +827,9 @@ print_hfsc_opts(const struct pf_altq *a) opts = &a->pq_u.hfsc_opts; - if (opts->flags || opts->rtsc_m2 != 0 || opts->lssc_m2 != 0 || - opts->ulsc_m2 != 0) { + 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)))) { printf("hfsc("); if (opts->flags & HFCF_RED) printf(" red"); @@ -850,7 +851,8 @@ print_hfsc_opts(const struct pf_altq *a) printf(" realtime %s", rate2str((double)opts->rtsc_m2)); } - if (opts->lssc_m2 != 0) { + if (opts->lssc_m2 != 0 && (opts->lssc_m2 != a->bandwidth || + (opts->lssc_m2 != a->bandwidth && opts->lssc_m1 != 0))) { if (opts->lssc_d != 0) printf(" linkshare(%s %ums %s)", rate2str((double)opts->lssc_m1), |