Bugzilla – Bug 219
Ipv4Interface is a poor API
Last modified: 2009-05-29 17:39:19 UTC
Ipv4.h has inconsistent method naming and misleading or duplicated method names. Related problem with Ipv4RoutingProtocol. Some methods named Find This or That and return uint32 index. Some methods named Get This or that and return uint32 index. Some methods take an index for an Ipv4Interface called i. Some methods take an index for an Ipv4Interface called ifIndex. Some methods take an index for an Ipv4Interface called interface. IfIndex is an overloaded term and shouldn't appear here. Some methods are misleading. FindIfIndexForDevice implies there is only one interface allowed per device. Some methods are duplicated? FindInterfaceForAddr, GetIfIndexByAddress. This is not very pretty.
sliding to ns-3.5
changeset e20a31541404