diff --git a/CHANGES.html b/CHANGES.html index 8e9f45398..45a26e499 100644 --- a/CHANGES.html +++ b/CHANGES.html @@ -43,10 +43,79 @@ the cracks, unfortunately. If you, as a user, can suggest improvements to this file based on your experience, please contribute a patch or drop us a note on ns-developers mailing list.
++- static const uint32_t Ipv4RoutingProtocol::IF_INDEX_ANY = 0xffffffff; ++ static const uint32_t Ipv4RoutingProtocol::INTERFACE_ANY = 0xffffffff; + +- bool Ipv4RoutingProtocol::RequestIfIndex (Ipv4Address destination, uint32_t& ifIndex); ++ bool Ipv4RoutingProtocol::RequestInterface (Ipv4Address destination, uint32_t& interface); +(N.B. this particular function is planned to be renamed to RouteOutput() in the +proposed IPv4 routing refactoring) + +- uint32_t Ipv4::GetIfIndexByAddress (Ipv4Address addr, Ipv4Mask mask); ++ int_32t Ipv4::GetInterfaceForAddress (Ipv4Address address, Ipv4Mask mask) const; + +- bool Ipv4::GetIfIndexForDestination (Ipv4Address dest, uint32_t &ifIndex) const; ++ bool Ipv4::GetInterfaceForDestination (Ipv4Address dest, uint32_t &interface) const; +(N.B. this function is not needed in the proposed Ipv4 routing refactoring) ++
++ virtual uint32_t AddAddress (uint32_t interface, Ipv4InterfaceAddress address) = 0; ++ virtual Ipv4InterfaceAddress GetAddress (uint32_t interface, uint32_t addressIndex) const = 0; ++ virtual uint32_t GetNAddresses (uint32_t interface) const = 0; ++
+ ipv4A->SetAddress (ifIndexA, Ipv4Address ("172.16.1.1"));
+ ipv4A->SetNetworkMask (ifIndexA, Ipv4Mask ("255.255.255.255"));
+
+you now do:
+
+ Ipv4InterfaceAddress ipv4IfAddrA = Ipv4InterfaceAddress (Ipv4Address ("172.16.1.1"), Ipv4Mask ("255.255.255.255"));
+ ipv4A->AddAddress (ifIndexA, ipv4IfAddrA);
+
++Ipv4Address Ipv4InterfaceContainer::GetAddress (uint32_t i) ++ Ipv4Address Ipv4InterfaceContainer::GetAddress (uint32_t i, uint32_t j) ++