summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2022-01-02 22:36:06 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2022-01-02 22:36:06 +0000
commit14d0b68e8507ba2c6acfb30d9176b87d78d83ab3 (patch)
tree672f42b1fcd27956dff77653febcfdb68f63c957 /sys/net
parente2c9659867b46cd28ab7c57e19b8f7f375222d54 (diff)
spelling
ok jmc@ reads ok tb@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/fq_codel.c4
-rw-r--r--sys/net/if.c6
-rw-r--r--sys/net/if_ppp.h4
-rw-r--r--sys/net/if_spppsubr.c4
-rw-r--r--sys/net/if_types.h4
-rw-r--r--sys/net/if_wg.c4
-rw-r--r--sys/net/pf.c4
-rw-r--r--sys/net/pfvar_priv.h4
-rw-r--r--sys/net/pipex.c6
-rw-r--r--sys/net/pipex.h4
-rw-r--r--sys/net/pipex_local.h6
-rw-r--r--sys/net/ppp_tty.c4
-rw-r--r--sys/net/radix.c4
-rw-r--r--sys/net/route.c4
-rw-r--r--sys/net/rtable.c4
15 files changed, 33 insertions, 33 deletions
diff --git a/sys/net/fq_codel.c b/sys/net/fq_codel.c
index e5d103cdf57..297280bf995 100644
--- a/sys/net/fq_codel.c
+++ b/sys/net/fq_codel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fq_codel.c,v 1.14 2020/12/10 06:53:38 dlg Exp $ */
+/* $OpenBSD: fq_codel.c,v 1.15 2022/01/02 22:36:03 jsg Exp $ */
/*
* Copyright (c) 2017 Mike Belopuhov
@@ -188,7 +188,7 @@ static const int64_t codel_target = 5000000;
/* Grace period after last drop, 16 100ms intervals */
static const int64_t codel_grace = 1600000000;
-/* First 399 "100 / sqrt(x)" intervarls, ns precision */
+/* First 399 "100 / sqrt(x)" intervals, ns precision */
static const uint32_t codel_intervals[] = {
100000000, 70710678, 57735027, 50000000, 44721360, 40824829, 37796447,
35355339, 33333333, 31622777, 30151134, 28867513, 27735010, 26726124,
diff --git a/sys/net/if.c b/sys/net/if.c
index 91bacd06a77..3131fd00662 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.645 2021/12/26 01:00:32 sashan Exp $ */
+/* $OpenBSD: if.c,v 1.646 2022/01/02 22:36:03 jsg Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -258,7 +258,7 @@ ifinit(void)
/*
* most machines boot with 4 or 5 interfaces, so size the initial map
- * to accomodate this
+ * to accommodate this
*/
if_idxmap_init(8);
@@ -744,7 +744,7 @@ if_input_local(struct ifnet *ifp, struct mbuf *m, sa_family_t af)
#if NBPFILTER > 0
/*
- * Only send packets to bpf if they are destinated to local
+ * Only send packets to bpf if they are destined to local
* addresses.
*
* if_input_local() is also called for SIMPLEX interfaces to
diff --git a/sys/net/if_ppp.h b/sys/net/if_ppp.h
index eb13a36f2c0..119e810f05d 100644
--- a/sys/net/if_ppp.h
+++ b/sys/net/if_ppp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ppp.h,v 1.9 2017/10/24 09:36:13 jsg Exp $ */
+/* $OpenBSD: if_ppp.h,v 1.10 2022/01/02 22:36:03 jsg Exp $ */
/* $NetBSD: if_ppp.h,v 1.11 1996/03/15 02:28:05 paulus Exp $ */
/*
@@ -93,7 +93,7 @@
*/
struct npioctl {
- int protocol; /* PPP procotol, e.g. PPP_IP */
+ int protocol; /* PPP protocol, e.g. PPP_IP */
enum NPmode mode;
};
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index 3982c29bbdc..7254ee7b93d 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.190 2021/11/17 18:00:24 bket Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.191 2022/01/02 22:36:03 jsg Exp $ */
/*
* Synchronous PPP link level subroutines.
*
@@ -4015,7 +4015,7 @@ sppp_pap_scr(struct sppp *sp)
/*
* Send a PAP or CHAP proto packet.
*
- * Varadic function, each of the elements for the ellipsis is of type
+ * Variadic function, each of the elements for the ellipsis is of type
* ``size_t mlen, const u_char *msg''. Processing will stop iff
* mlen == 0.
*/
diff --git a/sys/net/if_types.h b/sys/net/if_types.h
index 64400f95c54..7c05a90b5e1 100644
--- a/sys/net/if_types.h
+++ b/sys/net/if_types.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_types.h,v 1.23 2021/03/10 10:21:48 jsg Exp $ */
+/* $OpenBSD: if_types.h,v 1.24 2022/01/02 22:36:04 jsg Exp $ */
/* $NetBSD: if_types.h,v 1.17 2000/10/26 06:51:31 onoe Exp $ */
/*
@@ -205,7 +205,7 @@
#define IFT_USB 0xa0 /* USB Interface */
#define IFT_IEEE8023ADLAG 0xa1 /* IEEE 802.3ad Link Aggregate*/
#define IFT_BGPPOLICYACCOUNTING 0xa2 /* BGP Policy Accounting */
-#define IFT_FRF16MFRBUNDLE 0xa3 /* FRF.16 Multilik Frame Relay*/
+#define IFT_FRF16MFRBUNDLE 0xa3 /* FRF.16 Multilink Frame Relay*/
#define IFT_H323GATEKEEPER 0xa4 /* H323 Gatekeeper */
#define IFT_H323PROXY 0xa5 /* H323 Voice and Video Proxy */
#define IFT_MPLS 0xa6 /* MPLS */
diff --git a/sys/net/if_wg.c b/sys/net/if_wg.c
index 996ab20d9e4..13c48f42c54 100644
--- a/sys/net/if_wg.c
+++ b/sys/net/if_wg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_wg.c,v 1.19 2021/12/16 00:54:42 deraadt Exp $ */
+/* $OpenBSD: if_wg.c,v 1.20 2022/01/02 22:36:04 jsg Exp $ */
/*
* Copyright (C) 2015-2020 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
@@ -1621,7 +1621,7 @@ wg_decap(struct wg_softc *sc, struct mbuf *m)
* IP header, we just worry about the sizeof and the version, so we can
* read the source address in wg_aip_lookup.
*
- * We also need to trim the packet, as it was likely paddded before
+ * We also need to trim the packet, as it was likely padded before
* encryption. While we could drop it here, it will be more helpful to
* pass it to bpf_mtap and use the counters that people are expecting
* in ipv4_input and ipv6_input. We can rely on ipv4_input and
diff --git a/sys/net/pf.c b/sys/net/pf.c
index 4d497212304..d92e38f02b5 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.1122 2021/07/07 18:38:25 sashan Exp $ */
+/* $OpenBSD: pf.c,v 1.1123 2022/01/02 22:36:04 jsg Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1341,7 +1341,7 @@ pf_state_expires(const struct pf_state *state, uint8_t stimeout)
* state->timeout by having the caller do the read (and any
* chacks it needs to do on the same variable) and then pass
* their view of the timeout in here for this function to use.
- * the only consequnce of using a stale timeout value is
+ * the only consequence of using a stale timeout value is
* that the state won't be a candidate for purging until the
* next pass of the purge task.
*/
diff --git a/sys/net/pfvar_priv.h b/sys/net/pfvar_priv.h
index 5bba87b19a8..16716a6ddd6 100644
--- a/sys/net/pfvar_priv.h
+++ b/sys/net/pfvar_priv.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfvar_priv.h,v 1.7 2021/06/23 06:53:52 dlg Exp $ */
+/* $OpenBSD: pfvar_priv.h,v 1.8 2022/01/02 22:36:04 jsg Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -176,7 +176,7 @@ struct pf_pdesc {
u_int32_t off; /* protocol header offset */
u_int32_t hdrlen; /* protocol header length */
u_int32_t p_len; /* length of protocol payload */
- u_int32_t extoff; /* extentsion header offset */
+ u_int32_t extoff; /* extension header offset */
u_int32_t fragoff; /* fragment header offset */
u_int32_t jumbolen; /* length from v6 jumbo header */
u_int32_t badopts; /* v4 options or v6 routing headers */
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index e2d0c5c958d..f9a0c98d342 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.135 2021/07/27 09:29:09 mvs Exp $ */
+/* $OpenBSD: pipex.c,v 1.136 2022/01/02 22:36:04 jsg Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -199,7 +199,7 @@ pipex_init_session(struct pipex_session **rsession,
struct ifnet *over_ifp = NULL;
#endif
- /* Checks requeted parameters. */
+ /* Checks requested parameters. */
switch (req->pr_protocol) {
#ifdef PIPEX_PPPOE
case PIPEX_PROTO_PPPOE:
@@ -1033,7 +1033,7 @@ pipex_common_input(struct pipex_session *session, struct mbuf *m0, int hlen,
}
/* ok, The packet is for PIPEX */
- m_adj(m0, hlen);/* cut off the tunnle protocol header */
+ m_adj(m0, hlen);/* cut off the tunnel protocol header */
/* ensure the mbuf length equals the PPP frame length */
if (m0->m_pkthdr.len < plen)
diff --git a/sys/net/pipex.h b/sys/net/pipex.h
index b29903beac7..a71f914826e 100644
--- a/sys/net/pipex.h
+++ b/sys/net/pipex.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.h,v 1.30 2021/01/04 12:21:38 mvs Exp $ */
+/* $OpenBSD: pipex.h,v 1.31 2022/01/02 22:36:04 jsg Exp $ */
/*
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -51,7 +51,7 @@ struct pipex_mppe_req {
int16_t stateless; /* mppe key mode.
1 for stateless */
int16_t keylenbits; /* mppe key length(in bits)*/
- u_char master_key[PIPEX_MPPE_KEYLEN]; /* mppe mastter key */
+ u_char master_key[PIPEX_MPPE_KEYLEN]; /* mppe master key */
};
/* pipex statistics */
diff --git a/sys/net/pipex_local.h b/sys/net/pipex_local.h
index dd940b6a74a..b8c51fc4c15 100644
--- a/sys/net/pipex_local.h
+++ b/sys/net/pipex_local.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex_local.h,v 1.43 2021/07/27 09:29:09 mvs Exp $ */
+/* $OpenBSD: pipex_local.h,v 1.44 2022/01/02 22:36:04 jsg Exp $ */
/*
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -70,7 +70,7 @@ struct pipex_mppe {
reserved:14;
int16_t keylenbits; /* [I] key length */
int16_t keylen; /* [I] */
- uint16_t coher_cnt; /* [m] cohency counter */
+ uint16_t coher_cnt; /* [m] coherency counter */
struct rc4_ctx rc4ctx; /* [m] */
u_char master_key[PIPEX_MPPE_KEYLEN]; /* [m] master key of MPPE */
u_char session_key[PIPEX_MPPE_KEYLEN]; /* [m] session key of MPPE */
@@ -153,7 +153,7 @@ struct pipex_l2tp_session {
struct cpumem;
-/* pppac ip-extension sessoin table */
+/* pppac ip-extension session table */
struct pipex_session {
struct radix_node ps4_rn[2];
/* [N] tree glue, and other values */
diff --git a/sys/net/ppp_tty.c b/sys/net/ppp_tty.c
index 124b9df59ac..6c8d82c2e09 100644
--- a/sys/net/ppp_tty.c
+++ b/sys/net/ppp_tty.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ppp_tty.c,v 1.53 2019/11/27 17:59:13 beck Exp $ */
+/* $OpenBSD: ppp_tty.c,v 1.54 2022/01/02 22:36:04 jsg Exp $ */
/* $NetBSD: ppp_tty.c,v 1.12 1997/03/24 21:23:10 christos Exp $ */
/*
@@ -286,7 +286,7 @@ pppread(struct tty *tp, struct uio *uio, int flag)
if (sc == NULL)
return 0;
/*
- * Loop waiting for input, checking that nothing disasterous
+ * Loop waiting for input, checking that nothing disastrous
* happens in the meantime.
*/
s = spltty();
diff --git a/sys/net/radix.c b/sys/net/radix.c
index 37dc255537f..1ba41008c90 100644
--- a/sys/net/radix.c
+++ b/sys/net/radix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: radix.c,v 1.60 2021/03/10 10:21:48 jsg Exp $ */
+/* $OpenBSD: radix.c,v 1.61 2022/01/02 22:36:04 jsg Exp $ */
/* $NetBSD: radix.c,v 1.20 2003/08/07 16:32:56 agc Exp $ */
/*
@@ -709,7 +709,7 @@ rn_link_dupedkey(struct radix_node *tt, struct radix_node *x, int before)
* - leaf nodes with possible rn_dupedkey list
* - internal nodes with maybe their own mklist
* If the mask of the route is bigger than the current branch bit then
- * a rn_mklist entrie needs to be made.
+ * a rn_mklist entry needs to be made.
*/
void
rn_fixup_nodes(struct radix_node *tt)
diff --git a/sys/net/route.c b/sys/net/route.c
index 73bd6f53639..641469b34f1 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.399 2021/05/25 22:45:09 bluhm Exp $ */
+/* $OpenBSD: route.c,v 1.400 2022/01/02 22:36:04 jsg Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -1843,7 +1843,7 @@ db_print_ifa(struct ifaddr *ifa)
}
/*
- * Function to pass to rtalble_walk().
+ * Function to pass to rtable_walk().
* Return non-zero error to abort walk.
*/
int
diff --git a/sys/net/rtable.c b/sys/net/rtable.c
index 4cdd303200a..44c4042d326 100644
--- a/sys/net/rtable.c
+++ b/sys/net/rtable.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtable.c,v 1.75 2021/05/25 22:45:09 bluhm Exp $ */
+/* $OpenBSD: rtable.c,v 1.76 2022/01/02 22:36:04 jsg Exp $ */
/*
* Copyright (c) 2014-2016 Martin Pieuchot
@@ -62,7 +62,7 @@ struct rtmap {
/*
* Array of rtableid -> rdomain mapping.
*
- * Only used for the first index as describbed above.
+ * Only used for the first index as described above.
*/
struct dommp {
unsigned int limit;