|
Bugzilla – Full Text Bug Listing |
| Summary: | where data rate is set for PointToPoint NetDevice/Channel | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Tom Henderson <tomh> |
| Component: | devices | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
| Attachments: | a more modest bug fix, plus DataRate operators | ||
|
Description
Tom Henderson
2007-10-26 18:01:43 UTC
Created attachment 88 [details]
a more modest bug fix, plus DataRate operators
I ended up not trying to change the DataRate assignment being driven by the channel, for this time around, since it would require then changing the examples and topology code. I will leave that for a future cleanup.
This patch instead just enforces that a user cannot SetDataRate() on a NetDevice to a DataRate that exceeds the channel maximum.
And along the way, some const versions of the DataRate operators were missing so I added them too.
I think that you could just get rid of the non-const versions of the member methods. got rid of non-const operators; patches applied as changesets 1825 and 1826 |