summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgutteridge <gutteridge@NetBSD.org>2023-02-07 01:46:37 +0000
committergutteridge <gutteridge@NetBSD.org>2023-02-07 01:46:37 +0000
commit592cf3ccc4e2ee1af8a8ebcc74a808b391b9ca35 (patch)
tree0e94b02ff7347a5e4fc424f7feac0aa4f0efc03a
parenta96cd84453fe38dae3ad0faf462bf286ba31ba31 (diff)
bpf.c: fix a few typos and grammatical issues in comments
-rw-r--r--sys/net/bpf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 4a644494d5d..276a004e3f8 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bpf.c,v 1.249 2022/11/30 06:02:37 ozaki-r Exp $ */
+/* $NetBSD: bpf.c,v 1.250 2023/02/07 01:46:37 gutteridge Exp $ */
/*
* Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.249 2022/11/30 06:02:37 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.250 2023/02/07 01:46:37 gutteridge Exp $");
#if defined(_KERNEL_OPT)
#include "opt_bpf.h"
@@ -417,7 +417,7 @@ bpf_movein(struct ifnet *ifp, struct uio *uio, int linktype, uint64_t mtu, struc
}
}
- /* Insure the data is properly aligned */
+ /* Ensure the data is properly aligned */
if (align > 0)
m->m_data += align;
@@ -1759,7 +1759,7 @@ _bpf_mtap2(struct bpf_if *bp, void *data, u_int dlen, struct mbuf *m,
/*
* Craft on-stack mbuf suitable for passing to bpf_filter.
- * Note that we cut corners here; we only setup what's
+ * Note that we cut corners here; we only set up what's
* absolutely needed--this mbuf should never go anywhere else.
*/
(void)memset(&mb, 0, sizeof(mb));
@@ -1834,7 +1834,7 @@ _bpf_mtap_af(struct bpf_if *bp, uint32_t af, struct mbuf *m, u_int direction)
/*
* Put the SLIP pseudo-"link header" in place.
* Note this M_PREPEND() should never fail,
- * swince we know we always have enough space
+ * since we know we always have enough space
* in the input buffer.
*/
static void
@@ -1985,7 +1985,7 @@ bpf_hdrlen(struct bpf_d *d)
/*
* Move the packet data from interface memory (pkt) into the
- * store buffer. Call the wakeup functions if it's time to wakeup
+ * store buffer. Call the wakeup functions if it's time to wake up
* a listener (buffer full), "cpfn" is the routine called to do the
* actual data transfer. memcpy is passed in to copy contiguous chunks,
* while bpf_mcpy is passed in to copy mbuf chains. In the latter case,