|
Bugzilla – Full Text Bug Listing |
| Summary: | Ipv4 Headers? | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Joe Kopena <tjkopena> |
| Component: | build system | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED INVALID | ||
| Severity: | major | ||
| Priority: | P2 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
|
Description
Joe Kopena
2008-06-12 07:38:15 UTC
In general, it is intentional that most of these internet-stack headers are private, to accommodate future implementation changes behind the same public API. The public APIs for IPv4 are in src/node. Are there methods missing that you need there? Ipv4::GetBroadcastAddress(uint32_t i)? I want to designate a specific interface for an Application to utilize, and it needs to get both the local address and the broadcast address of that interface. Previously I was passing in the addresses manually, but this seems cleaner. Or, perhaps just add a comment that the broadcast should be pulled from the address returned from Ipv4::GetAddress(i)? Sorry, it's early... Joe, is this still valid? No; if someone wants to they could add a note about the broadcast address being properly fetched from the address given the netmask, but it's not critical---the functionality is there. Can you please add to ns-3-dev the documentation note that you think would help future users? Done. |