Bugzilla – Bug 220
Ipv4 Headers?
Last modified: 2008-07-03 11:26:28 UTC
It doesn't seem like all of the various Ipv4 headers are being copied into the build header directory anymore. Without those, for example ipv4-l3-protocol.h, it's not obvious to me how to do basic tasks like get the interfaces and IP addresses associated with a given node pointer. Thx
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.