Bug 220

Summary: Ipv4 Headers?
Product: ns-3 Reporter: Joe Kopena <tjkopena>
Component: build systemAssignee: 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
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
Comment 1 Tom Henderson 2008-06-12 09:04:23 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?
Comment 2 Joe Kopena 2008-06-12 09:22:37 UTC
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.
Comment 3 Joe Kopena 2008-06-12 09:37:27 UTC
Or, perhaps just add a comment that the broadcast should be pulled from the address returned from Ipv4::GetAddress(i)?

Sorry, it's early...
Comment 4 Tom Henderson 2008-07-03 00:20:06 UTC
Joe, is this still valid?
Comment 5 Joe Kopena 2008-07-03 09:02:45 UTC
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.
Comment 6 Tom Henderson 2008-07-03 09:32:19 UTC
Can you please add to ns-3-dev the documentation note that you think would help future users?
Comment 7 Joe Kopena 2008-07-03 11:26:28 UTC
Done.