summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.c
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2006-12-11 23:46:40 +0000
committerthompsa <thompsa@FreeBSD.org>2006-12-11 23:46:40 +0000
commita68b5db0667c09becd1a6c1980cb9eabf075be97 (patch)
treef64c9494a36368f4740ab3fbefea5606db6a1f61 /sys/net/bridgestp.c
parenta3a728eabb31b5ce3771f41c9b9b0bab5dbde992 (diff)
downloadFreeBSD-src-a68b5db0667c09becd1a6c1980cb9eabf075be97.zip
FreeBSD-src-a68b5db0667c09becd1a6c1980cb9eabf075be97.tar.gz
These days P2P means peer-2-peer (also well known from serveral filesharing
protocols) while PointToPoint has been PtP links. Change the variables accordingly while the code is still fresh and undocumented. Requested by: bz
Diffstat (limited to 'sys/net/bridgestp.c')
-rw-r--r--sys/net/bridgestp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index dfc59b5..87b9574 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -661,7 +661,7 @@ bstp_received_bpdu(struct bstp_state *bs, struct bstp_port *bp,
* only point to point links are allowed fast
* transitions to forwarding.
*/
- if (cu->cu_agree && bp->bp_p2p_link) {
+ if (cu->cu_agree && bp->bp_ptp_link) {
bp->bp_agreed = 1;
bp->bp_proposing = 0;
} else
@@ -1036,7 +1036,7 @@ bstp_update_roles(struct bstp_state *bs, struct bstp_port *bp)
bp->bp_proposing = 1;
bp->bp_flags |= BSTP_PORT_NEWINFO;
bstp_timer_start(&bp->bp_edge_delay_timer,
- (bp->bp_p2p_link ? BSTP_DEFAULT_MIGRATE_DELAY :
+ (bp->bp_ptp_link ? BSTP_DEFAULT_MIGRATE_DELAY :
bp->bp_desg_max_age));
DPRINTF("%s -> DESIGNATED_PROPOSE\n",
bp->bp_ifp->if_xname);
@@ -1663,27 +1663,27 @@ bstp_set_autoedge(struct bstp_port *bp, int set)
}
int
-bstp_set_p2p(struct bstp_port *bp, int set)
+bstp_set_ptp(struct bstp_port *bp, int set)
{
struct bstp_state *bs = bp->bp_bs;
BSTP_LOCK(bs);
- bp->bp_p2p_link = set;
+ bp->bp_ptp_link = set;
BSTP_UNLOCK(bs);
return (0);
}
int
-bstp_set_autop2p(struct bstp_port *bp, int set)
+bstp_set_autoptp(struct bstp_port *bp, int set)
{
struct bstp_state *bs = bp->bp_bs;
BSTP_LOCK(bs);
if (set) {
- bp->bp_flags |= BSTP_PORT_AUTOP2P;
+ bp->bp_flags |= BSTP_PORT_AUTOPTP;
bstp_ifupdstatus(bs, bp);
} else
- bp->bp_flags &= ~BSTP_PORT_AUTOP2P;
+ bp->bp_flags &= ~BSTP_PORT_AUTOPTP;
BSTP_UNLOCK(bs);
return (0);
}
@@ -1804,8 +1804,8 @@ bstp_ifupdstatus(struct bstp_state *bs, struct bstp_port *bp)
if ((error == 0) && (ifp->if_flags & IFF_UP)) {
if (ifmr.ifm_status & IFM_ACTIVE) {
/* A full-duplex link is assumed to be point to point */
- if (bp->bp_flags & BSTP_PORT_AUTOP2P) {
- bp->bp_p2p_link =
+ if (bp->bp_flags & BSTP_PORT_AUTOPTP) {
+ bp->bp_ptp_link =
ifmr.ifm_active & IFM_FDX ? 1 : 0;
}
@@ -2163,7 +2163,7 @@ bstp_create(struct bstp_state *bs, struct bstp_port *bp, struct ifnet *ifp)
/* Init state */
bp->bp_infois = BSTP_INFO_DISABLED;
- bp->bp_flags = BSTP_PORT_AUTOEDGE|BSTP_PORT_AUTOP2P;
+ bp->bp_flags = BSTP_PORT_AUTOEDGE|BSTP_PORT_AUTOPTP;
bstp_set_port_state(bp, BSTP_IFSTATE_DISCARDING);
bstp_set_port_proto(bp, bs->bs_protover);
bstp_set_port_role(bp, BSTP_ROLE_DISABLED);
OpenPOWER on IntegriCloud