summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-12-09 20:47:12 +0000
committerthompsa <thompsa@FreeBSD.org>2007-12-09 20:47:12 +0000
commit228f20a1fe1442625e7d906db4be8822c00a7970 (patch)
tree16427a9a30228d7017f6cdc3f6a1c6c90948cc08 /sys/net/bridgestp.c
parentfaeb9466cb7cf4379691e947144a7f280b5f8024 (diff)
downloadFreeBSD-src-228f20a1fe1442625e7d906db4be8822c00a7970.zip
FreeBSD-src-228f20a1fe1442625e7d906db4be8822c00a7970.tar.gz
Fix spelling.
Obtained from: OpenBSD
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r--sys/net/bridgestp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index d270939..993318a 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -618,7 +618,7 @@ bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp,
bp->bp_rcvdtca = 1;
if (bp->bp_agree &&
- !bstp_pdu_bettersame(bp, BSTP_INFO_RECIEVED))
+ !bstp_pdu_bettersame(bp, BSTP_INFO_RECEIVED))
bp->bp_agree = 0;
/* copy the received priority and timers to the port */
@@ -633,7 +633,7 @@ bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp,
/* set expiry for the new info */
bstp_set_timer_msgage(bp);
- bp->bp_infois = BSTP_INFO_RECIEVED;
+ bp->bp_infois = BSTP_INFO_RECEIVED;
bstp_assign_roles(bs);
break;
@@ -728,8 +728,8 @@ bstp_pdu_rcvtype(struct bstp_port *bp, struct bstp_config_unit *cu)
static int
bstp_pdu_bettersame(struct bstp_port *bp, int newinfo)
{
- if (newinfo == BSTP_INFO_RECIEVED &&
- bp->bp_infois == BSTP_INFO_RECIEVED &&
+ if (newinfo == BSTP_INFO_RECEIVED &&
+ bp->bp_infois == BSTP_INFO_RECEIVED &&
bstp_info_cmp(&bp->bp_port_pv, &bp->bp_msg_cu.cu_pv) >= INFO_SAME)
return (1);
@@ -801,7 +801,7 @@ bstp_assign_roles(struct bstp_state *bs)
/* check if any recieved info supersedes us */
LIST_FOREACH(bp, &bs->bs_bplist, bp_next) {
- if (bp->bp_infois != BSTP_INFO_RECIEVED)
+ if (bp->bp_infois != BSTP_INFO_RECEIVED)
continue;
pv = bp->bp_port_pv;
@@ -864,7 +864,7 @@ bstp_assign_roles(struct bstp_state *bs)
bstp_update_info(bp);
break;
- case BSTP_INFO_RECIEVED:
+ case BSTP_INFO_RECEIVED:
if (bp == rbp) {
/*
* root priority is derived from this
@@ -1959,7 +1959,7 @@ bstp_hello_timer_expiry(struct bstp_state *bs, struct bstp_port *bp)
static void
bstp_message_age_expiry(struct bstp_state *bs, struct bstp_port *bp)
{
- if (bp->bp_infois == BSTP_INFO_RECIEVED) {
+ if (bp->bp_infois == BSTP_INFO_RECEIVED) {
bp->bp_infois = BSTP_INFO_AGED;
bstp_assign_roles(bs);
DPRINTF("aged info on %s\n", bp->bp_ifp->if_xname);
OpenPOWER on IntegriCloud