Bugzilla – Full Text Bug Listing |
Summary: | Incorrect trace callback signature | ||
---|---|---|---|
Product: | ns-3 | Reporter: | Dizhi Zhou <dizhizhou> |
Component: | documentation | Assignee: | Tom Henderson <tomh> |
Status: | NEEDINFO --- | ||
Severity: | trivial | CC: | ns-bugs, pdbarnes |
Priority: | P3 | ||
Version: | ns-3.27 | ||
Hardware: | All | ||
OS: | All |
Description
Dizhi Zhou
2018-03-04 11:08:29 EST
This one: ns3::Time::TracedValueCallback::Time should really be ns3::TracedValueCallback::Time as defined in nstime.h:719. I'm fixing the ones Dizhi mentioned below; there are probably more. In particular, there are some new ones that need to be defined in the standard way (tcp-socket-base.cc). We probably need to audit all uses of TracedValue in our headers.
>
> Correct format: ns3::TracedValueCallback::Uint32
> src/internet/model/tcp-socket-base.cc:
> "ns3::TracedValue::Uint32Callback")
> src/internet/model/tcp-socket-base.cc:
> "ns3::TracedValue::Uint32Callback")
> src/wifi/model/edca-txop-n.cc:
> "ns3::TracedValue::Uint32Callback")
> src/wifi/model/edca-txop-n.cc:
> "ns3::TracedValue::Uint32Callback")
Fixed. But I have a question, there is a signature for a 'ns3::TracedCallback::Uint32Callback' with a comment that:
// Uint32Callback appears to be the only one used at the moment.
// Feel free to add typedef's for any other POD you need.
The above that Dizhi listed should clearly be ns3::TracedValueCallback::Uint32, but once I fix those, I can't find other instances of that Uint32Callback in our codebase. Should 'ns3::TracedCallback::Uint32Callback' be removed (is it obsolete)?
`ns3::TracedCallback::Uint32Callback` is NOT obsolete: "$ns3::RegularWifiMac/Txop/BackoffTrace" uses it. Is this bug now complete? |