Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
58156b2
stp: reordering code to better reflect the execution flow
ManiAm Sep 8, 2019
6e4ff28
mac: watch the address table
ManiAm Sep 8, 2019
def034c
mac: adding base MAC address to each switch
ManiAm Sep 8, 2019
7fa2cf2
stp: using the base mac address
ManiAm Sep 8, 2019
ad3cd33
stp; use enum for bpdu type
ManiAm Sep 8, 2019
693c5e9
stp: fix the field names in the bpdu
ManiAm Sep 9, 2019
b576002
stp: adding protocol serializer
ManiAm Sep 9, 2019
299a616
stp: adding important variables into WATCH
ManiAm Sep 9, 2019
ba00ebb
stp: using enum instead
ManiAm Sep 9, 2019
367a628
stp: adding more debug
ManiAm Sep 10, 2019
aebff32
stp: adding a new disabledInterfaces parameter to stp
ManiAm Sep 10, 2019
ae5fe33
stp: L2NetworkConfigurator is now working properly
ManiAm Sep 11, 2019
8ce04f8
stp: set port cost to recommended value from IEEE when not explicitly…
ManiAm Sep 11, 2019
960ce21
stp: set bridge mac address correctly
ManiAm Sep 11, 2019
4a88844
stp: move color values to ned param
ManiAm Sep 11, 2019
7bcecdc
rstp: adding link colors to ned
ManiAm Sep 12, 2019
5b85c2e
rstp: reordering code to better reflect the execution flow
ManiAm Sep 12, 2019
7d231ce
stp,rstp: fix protocol version and type in BPDUs
ManiAm Sep 12, 2019
2b1b5c6
stp: use better types
ManiAm Sep 12, 2019
361c267
stp: print isEdge information of an interface
ManiAm Sep 12, 2019
9b9ab6a
stp: refactoring
ManiAm Sep 12, 2019
4ba018e
stp: stp does not have any DISCARDING states
ManiAm Sep 12, 2019
97da4e0
stp: cosmetics
ManiAm Sep 12, 2019
eb6fbee
rtp: adding more debug output
ManiAm Sep 13, 2019
1a399ed
stp: source MAC address is now set correctly
ManiAm Sep 13, 2019
ee636c7
rtp: fix tcn bpdu value
ManiAm Sep 14, 2019
bd18b91
stp: adding more debugs
ManiAm Sep 14, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
stp: adding important variables into WATCH
  • Loading branch information
ManiAm committed Sep 15, 2019
commit 299a6161e0dcb325c835fe5b17a302381d89d14d
8 changes: 7 additions & 1 deletion src/inet/linklayer/ieee8021d/stp/Stp.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ void Stp::initialize(int stage)

if (stage == INITSTAGE_LOCAL) {
tick = new cMessage("STP_TICK", 0);
WATCH(bridgeAddress);
}
else if (stage == INITSTAGE_LINK_LAYER) {
registerService(Protocol::stp, nullptr, gate("relayIn"));
Expand Down Expand Up @@ -75,6 +74,13 @@ void Stp::start()
helloTime = 0;
setAllDesignated();

WATCH(bridgePriority);
WATCH(bridgeAddress);
WATCH(isRoot);
WATCH(rootPriority);
WATCH(rootAddress);
WATCH(rootPathCost);

scheduleAt(simTime() + tickInterval, tick);
}

Expand Down