Commit b0dce55
L2NodeConfigurator: conditionally add protocol data based on hasStp/hasMrp parameters
Add hasStp and hasMrp boolean parameters to L2NodeConfigurator.
Only add Ieee8021dInterfaceData when hasStp is true, and only add
MrpInterfaceData when hasMrp is true. Previously, both were added
unconditionally, causing MrpInterfaceData to appear on interfaces
even when MRP was not active.
EthernetSwitch passes its hasStp/hasMrp parameters through to
L2NodeConfigurator. L2NetworkConfigurator::configureInterface()
now gracefully handles the case when Ieee8021dInterfaceData is absent.1 parent 635e7d1 commit b0dce55
4 files changed
Lines changed: 11 additions & 4 deletions
File tree
- src/inet
- linklayer/configurator/common
- node/ethernet
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
64 | | - | |
| 63 | + | |
| 64 | + | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
0 commit comments