Separate address assignment from routing in PointToPoint topology code

This commit is contained in:
Tom Henderson
2007-05-12 15:31:40 -07:00
parent 5c5ad7b16a
commit dc01b2136e
6 changed files with 132 additions and 21 deletions

View File

@@ -122,6 +122,11 @@ public:
*/
virtual uint32_t GetNInterfaces (void) = 0;
/**
* Return address of the NetDevice associated with the Ipv4Interface
*/
virtual NetDevice* PeekNetDevice (uint32_t i) = 0;
virtual void SetAddress (uint32_t i, Ipv4Address address) = 0;
virtual void SetNetworkMask (uint32_t i, Ipv4Mask mask) = 0;
virtual Ipv4Mask GetNetworkMask (uint32_t t) const = 0;