nix-vector-routing: (fixes #373) Remove sub struct Ipv4AddressHash
`Ipv4NixVectorRouting::Ipv4AddressHash` should be removed in favor of class `Ipv4AddressHash`. Struct `Ipv4AddressHash` under Ipv4NixVectorRouting is redundant with class `Ipv4AddressHash`. Signed-off-by: Ameya Deshpande <ameyanrd@outlook.com>
This commit is contained in:
committed by
Tommaso Pecorella
parent
f920aad547
commit
815fba9c73
@@ -262,22 +262,6 @@ private:
|
||||
uint32_t m_totalNeighbors;
|
||||
|
||||
|
||||
/**
|
||||
* \brief Hashing for the ipv4Address class
|
||||
*/
|
||||
struct Ipv4AddressHash
|
||||
{
|
||||
/**
|
||||
* \brief operator ()
|
||||
* \param address the IPv4 address to hash
|
||||
* \return the hash of the address
|
||||
*/
|
||||
size_t operator() (const Ipv4Address &address) const
|
||||
{
|
||||
return std::hash<uint32_t>()(address.Get ());
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Mapping of IPv4 address to ns-3 node.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user