From 8213eec711bdd69c48b62c3a1a9e51bbbdbb6243 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Tue, 7 Mar 2006 18:21:11 +0000 Subject: use the cu_bridge_id rather than the cu_rootid for the bridge address. From: Onno Molenkamp via Andrew Thompson ok jason@ --- sys/net/bridgestp.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'sys') diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c index 42cc5f88e43..4f567ea3cb8 100644 --- a/sys/net/bridgestp.c +++ b/sys/net/bridgestp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bridgestp.c,v 1.20 2006/03/04 22:40:15 brad Exp $ */ +/* $OpenBSD: bridgestp.c,v 1.21 2006/03/07 18:21:10 brad Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -274,13 +274,13 @@ bstp_send_config_bpdu(bif, cu) bpdu.cbu_rootpathcost = htonl(cu->cu_root_path_cost); - bpdu.cbu_bridgepri = htons(cu->cu_rootid >> 48); - bpdu.cbu_bridgeaddr[0] = cu->cu_rootid >> 40; - bpdu.cbu_bridgeaddr[1] = cu->cu_rootid >> 32; - bpdu.cbu_bridgeaddr[2] = cu->cu_rootid >> 24; - bpdu.cbu_bridgeaddr[3] = cu->cu_rootid >> 16; - bpdu.cbu_bridgeaddr[4] = cu->cu_rootid >> 8; - bpdu.cbu_bridgeaddr[5] = cu->cu_rootid >> 0; + bpdu.cbu_bridgepri = htons(cu->cu_bridge_id >> 48); + bpdu.cbu_bridgeaddr[0] = cu->cu_bridge_id >> 40; + bpdu.cbu_bridgeaddr[1] = cu->cu_bridge_id >> 32; + bpdu.cbu_bridgeaddr[2] = cu->cu_bridge_id >> 24; + bpdu.cbu_bridgeaddr[3] = cu->cu_bridge_id >> 16; + bpdu.cbu_bridgeaddr[4] = cu->cu_bridge_id >> 8; + bpdu.cbu_bridgeaddr[5] = cu->cu_bridge_id >> 0; bpdu.cbu_portid = htons(cu->cu_port_id); bpdu.cbu_messageage = htons(cu->cu_message_age); -- cgit v1.2.3