From 91de09d8edd983816ddad595260e4eba2e3bc433 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 14 Apr 2003 16:51:37 +0000 Subject: if linkshare service curve m2 == bandwidth, but d given, we do need to print linkshare as it is not exactly the default case then --- sbin/pfctl/pfctl_altq.c | 6 +++--- 1 file 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), -- cgit v1.2.3