summaryrefslogtreecommitdiff
path: root/sys/altq
diff options
context:
space:
mode:
authorChad Loder <cloder@cvs.openbsd.org>2003-01-07 00:29:29 +0000
committerChad Loder <cloder@cvs.openbsd.org>2003-01-07 00:29:29 +0000
commitb8a924f0576eb6845beffa1a28232bc009581d06 (patch)
tree2a57b38f767d4596a001b86f364b938429642445 /sys/altq
parente8070168baf03a711a06965067505e0ee261e807 (diff)
Correct several typos in comments. No code changes.
Diffstat (limited to 'sys/altq')
-rw-r--r--sys/altq/altq_cbq.c6
-rw-r--r--sys/altq/altq_classq.h4
-rw-r--r--sys/altq/altq_red.c4
-rw-r--r--sys/altq/altq_rio.c4
-rw-r--r--sys/altq/altq_rmclass.c16
5 files changed, 17 insertions, 17 deletions
diff --git a/sys/altq/altq_cbq.c b/sys/altq/altq_cbq.c
index 215f73e8c0d..ca387a8192a 100644
--- a/sys/altq/altq_cbq.c
+++ b/sys/altq/altq_cbq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_cbq.c,v 1.9 2002/12/16 17:27:19 henning Exp $ */
+/* $OpenBSD: altq_cbq.c,v 1.10 2003/01/07 00:29:28 cloder Exp $ */
/* $KAME: altq_cbq.c,v 1.9 2000/12/14 08:12:45 thorpej Exp $ */
/*
@@ -63,7 +63,7 @@ static void cbq_purge(cbq_state_t *);
/*
* int
* cbq_class_destroy(cbq_mod_state_t *, struct rm_class *) - This
- * function destroys a given traffic class. Before destorying
+ * function destroys a given traffic class. Before destroying
* the class, all traffic for that class is released.
*/
static int
@@ -482,7 +482,7 @@ cbq_getqstats(struct pf_altq *a, void *ubuf, int *nbytes)
*
* Assumptions: called in splimp
* Returns: 0 if the queueing is successful.
- * ENOBUFS if a packet dropping occured as a result of
+ * ENOBUFS if a packet dropping occurred as a result of
* the queueing.
*/
diff --git a/sys/altq/altq_classq.h b/sys/altq/altq_classq.h
index 5be1a15245b..3ee2aad31c7 100644
--- a/sys/altq/altq_classq.h
+++ b/sys/altq/altq_classq.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_classq.h,v 1.2 2002/11/26 01:03:34 henning Exp $ */
+/* $OpenBSD: altq_classq.h,v 1.3 2003/01/07 00:29:28 cloder Exp $ */
/* $KAME: altq_classq.h,v 1.4 2001/02/09 07:20:40 kjc Exp $ */
/*
@@ -54,7 +54,7 @@ extern "C" {
#ifdef _KERNEL
/*
- * Packet Queue strcutures and macros to manipulate them.
+ * Packet Queue structures and macros to manipulate them.
*/
struct _class_queue_ {
struct mbuf *tail_; /* Tail of packet queue */
diff --git a/sys/altq/altq_red.c b/sys/altq/altq_red.c
index f0eb8f71a91..a09592b6029 100644
--- a/sys/altq/altq_red.c
+++ b/sys/altq/altq_red.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_red.c,v 1.9 2002/12/16 17:27:20 henning Exp $ */
+/* $OpenBSD: altq_red.c,v 1.10 2003/01/07 00:29:28 cloder Exp $ */
/* $KAME: altq_red.c,v 1.10 2002/04/03 05:38:51 kjc Exp $ */
/*
@@ -112,7 +112,7 @@
* for a slow link like dial-up, 500 packets takes more than 1 minute!
* when q_weight is 0.008, N is about 127 packets.
* when q_weight is 0.016, N is about 63 packets.
- * bursts of 50 packets are allowd for 0.002, bursts of 25 packets
+ * bursts of 50 packets are allowed for 0.002, bursts of 25 packets
* are allowed for 0.016.
* see Sally's paper for more details.
*/
diff --git a/sys/altq/altq_rio.c b/sys/altq/altq_rio.c
index 2b568b43c02..ca789b23105 100644
--- a/sys/altq/altq_rio.c
+++ b/sys/altq/altq_rio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_rio.c,v 1.8 2002/12/16 17:27:20 henning Exp $ */
+/* $OpenBSD: altq_rio.c,v 1.9 2003/01/07 00:29:28 cloder Exp $ */
/* $KAME: altq_rio.c,v 1.8 2000/12/14 08:12:46 thorpej Exp $ */
/*
@@ -187,7 +187,7 @@ rio_alloc(int weight, struct redparams *params, int flags, int pkttime)
if (weight != 0)
rp->rio_weight = weight;
else {
- /* use derfault */
+ /* use default */
rp->rio_weight = W_WEIGHT;
/* when the link is very slow, adjust red parameters */
diff --git a/sys/altq/altq_rmclass.c b/sys/altq/altq_rmclass.c
index 9c07af81c2f..b4d43381385 100644
--- a/sys/altq/altq_rmclass.c
+++ b/sys/altq/altq_rmclass.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: altq_rmclass.c,v 1.7 2002/12/16 17:27:20 henning Exp $ */
+/* $OpenBSD: altq_rmclass.c,v 1.8 2003/01/07 00:29:28 cloder Exp $ */
/* $KAME: altq_rmclass.c,v 1.10 2001/02/09 07:20:40 kjc Exp $ */
/*
@@ -308,13 +308,13 @@ rmc_newclass(int pri, struct rm_ifdat *ifd, u_int nsecPerByte,
}
/*
- * Compute the depth of this class and it's ancestors in the class
+ * Compute the depth of this class and its ancestors in the class
* hierarchy.
*/
rmc_depth_compute(cl);
/*
- * If CBQ's WRR is enabled, then initailize the class WRR state.
+ * If CBQ's WRR is enabled, then initialize the class WRR state.
*/
if (ifd->wrr_) {
ifd->num_[pri]++;
@@ -400,7 +400,7 @@ rmc_wrr_set_weights(struct rm_ifdat *ifd)
ifd->M_[i] = ifd->alloc_[i] /
(ifd->num_[i] * ifd->maxpkt_);
/*
- * Compute the weigthed allotment for each class.
+ * Compute the weighted allotment for each class.
* This takes the expensive div instruction out
* of the main loop for the wrr scheduling path.
* These only get recomputed when a class comes or
@@ -647,7 +647,7 @@ rmc_init(struct ifaltq *ifq, struct rm_ifdat *ifd, u_int nsecPerByte,
int i, mtu;
/*
- * Initialize the CBQ traciing/debug facility.
+ * Initialize the CBQ tracing/debug facility.
*/
CBQTRACEINIT();
@@ -912,7 +912,7 @@ rmc_under_limit(struct rm_class *cl, struct timeval *now)
* _rmc_wrr_dequeue_next() - This is scheduler for WRR as opposed to
* Packet-by-packet round robin.
*
- * The heart of the weigthed round-robin scheduler, which decides which
+ * The heart of the weighted round-robin scheduler, which decides which
* class next gets to send a packet. Highest priority first, then
* weighted round-robin within priorites.
*
@@ -1241,7 +1241,7 @@ rmc_update_class_util(struct rm_ifdat *ifd)
PKTCNTR_ADD(&cl->stats_.xmit_cnt, pktlen);
/*
- * Run estimator on class and it's ancesstors.
+ * Run estimator on class and its ancestors.
*/
/*
* rm_update_class_util is designed to be called when the
@@ -1774,4 +1774,4 @@ _flushq(class_queue_t *q)
}
#endif /* !__GNUC__ || ALTQ_DEBUG */
-#endif /* ALTQ_CBQ || ALTQ_RED || ALTQ_RIO || ALTQ_HFSC || ALTQ_PRIQ */ \ No newline at end of file
+#endif /* ALTQ_CBQ || ALTQ_RED || ALTQ_RIO || ALTQ_HFSC || ALTQ_PRIQ */