diff options
author | 2015-04-12 14:09:40 +0000 | |
---|---|---|
committer | 2015-04-12 14:09:40 +0000 | |
commit | ad978554572a93def62d81e31c33a6e598ba06a3 (patch) | |
tree | 9f1db939b3c95f1693789a1e28d1020c88feb639 | |
parent | there's a 1:1 correlation between hfsc_class instances and hfsc_classq (diff) | |
download | wireguard-openbsd-ad978554572a93def62d81e31c33a6e598ba06a3.tar.xz wireguard-openbsd-ad978554572a93def62d81e31c33a6e598ba06a3.zip |
hfsc_classq has a type member which is never set or read, except to report
its value to userland which will always be 0.
drop the member. lie to userland.
ok henning@
-rw-r--r-- | sys/net/hfsc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/hfsc.c b/sys/net/hfsc.c index 2163d7d7ad4..95eba8d58a5 100644 --- a/sys/net/hfsc.c +++ b/sys/net/hfsc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hfsc.c,v 1.19 2015/04/12 12:22:26 dlg Exp $ */ +/* $OpenBSD: hfsc.c,v 1.20 2015/04/12 14:09:40 dlg Exp $ */ /* * Copyright (c) 2012-2013 Henning Brauer <henning@openbsd.org> @@ -109,7 +109,6 @@ struct hfsc_classq { struct mbuf *tail; /* Tail of packet queue */ int qlen; /* Queue length (in number of packets) */ int qlimit; /* Queue limit (in number of packets*) */ - int qtype; /* Queue type */ }; /* for TAILQ based ellist and actlist implementation */ @@ -1606,7 +1605,7 @@ hfsc_getclstats(struct hfsc_class_stats *sp, struct hfsc_class *cl) sp->drop_cnt = cl->cl_stats.drop_cnt; sp->period = cl->cl_stats.period; - sp->qtype = cl->cl_q.qtype; + sp->qtype = 0; } /* convert a class handle to the corresponding class pointer */ |