summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-30 05:47:51 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2004-04-30 05:47:51 +0000
commite04d7cea14dad24e49bfe4187d226605b882e0b2 (patch)
tree4de0cb4ed78eb647200351140989355cca229e57
parent532e4cae01f2c0f962a6d1640b3bd00d31ae3fa5 (diff)
spelling
-rw-r--r--usr.sbin/bgpd/parse.y4
-rw-r--r--usr.sbin/bgpd/rde.c8
-rw-r--r--usr.sbin/bgpd/rde_attr.c4
-rw-r--r--usr.sbin/bgpd/rde_update.c4
4 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/bgpd/parse.y b/usr.sbin/bgpd/parse.y
index 34f8210e575..460e659f8e6 100644
--- a/usr.sbin/bgpd/parse.y
+++ b/usr.sbin/bgpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.97 2004/04/29 19:56:04 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.98 2004/04/30 05:47:50 deraadt Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -695,7 +695,7 @@ encspec : /* nada */ {
}
if (strlen($2) / 2 != $$.enc_key_len) {
- yyerror("enc key lenght wrong: should be %u "
+ yyerror("enc key length wrong: should be %u "
"bytes, is %u bytes",
$$.enc_key_len * 2, strlen($2));
free($2);
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c
index 5775e2fc38f..0eb2ea1c5d9 100644
--- a/usr.sbin/bgpd/rde.c
+++ b/usr.sbin/bgpd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.109 2004/04/29 19:56:04 deraadt Exp $ */
+/* $OpenBSD: rde.c,v 1.110 2004/04/30 05:47:50 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -857,11 +857,11 @@ rde_update_queue_runner(void)
if (peer->state != PEER_UP)
continue;
/* first withdraws */
- wpos = 2; /* reserve space for the lenght field */
+ wpos = 2; /* reserve space for the length field */
r = up_dump_prefix(queue_buf + wpos, len - wpos - 2,
&peer->withdraws, peer);
wd_len = r;
- /* write withdraws lenght filed */
+ /* write withdraws length filed */
wd_len = htons(wd_len);
memcpy(queue_buf, &wd_len, 2);
wpos += r;
@@ -874,7 +874,7 @@ rde_update_queue_runner(void)
if (wpos == 4)
/*
* No packet to send. The 4 bytes are the
- * needed withdraw and path attribute lenght.
+ * needed withdraw and path attribute length.
*/
continue;
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c
index c04a4204cbe..d669caad4e1 100644
--- a/usr.sbin/bgpd/rde_attr.c
+++ b/usr.sbin/bgpd/rde_attr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_attr.c,v 1.27 2004/04/08 16:08:21 henning Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.28 2004/04/30 05:47:50 deraadt Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -563,7 +563,7 @@ aspath_verify(void *data, u_int16_t len)
u_int8_t seg_len, seg_type;
if (len & 1)
- /* odd lenght aspath are invalid */
+ /* odd length aspath are invalid */
return AS_ERR_BAD;
for (; len > 0; len -= seg_size, seg += seg_size) {
diff --git a/usr.sbin/bgpd/rde_update.c b/usr.sbin/bgpd/rde_update.c
index de92efb2172..1da0564a6e8 100644
--- a/usr.sbin/bgpd/rde_update.c
+++ b/usr.sbin/bgpd/rde_update.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_update.c,v 1.16 2004/03/20 23:17:35 david Exp $ */
+/* $OpenBSD: rde_update.c,v 1.17 2004/04/30 05:47:50 deraadt Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -546,7 +546,7 @@ up_set_prefix(u_char *buf, int len, struct bgpd_addr *prefix, u_int8_t plen)
return (totlen);
}
-#define MIN_PREFIX_LEN 5 /* 1 byte prefix lenght + 4 bytes addr */
+#define MIN_PREFIX_LEN 5 /* 1 byte prefix length + 4 bytes addr */
int
up_dump_prefix(u_char *buf, int len, struct uplist_prefix *prefix_head,
struct rde_peer *peer)