INET Framework for OMNeT++/OMNEST
|
#include <IPv4Address.h>
Public Types | |
enum | AddressCategory { UNSPECIFIED, THIS_NETWORK, LOOPBACK, MULTICAST, BROADCAST, IETF, TEST_NET, IPv6_TO_IPv4_RELAY, BENCHMARK, RESERVED, LINKLOCAL, PRIVATE_NETWORK, GLOBAL } |
IPv4 address category. More... | |
Public Member Functions | |
IPv4Address & | operator= (const IPv4Address &obj) |
Assignment. More... | |
bool | isUnspecified () const |
True if all four address bytes are zero. More... | |
bool | equals (const IPv4Address &toCmp) const |
Returns true if the two addresses are equal. More... | |
IPv4Address | doAnd (const IPv4Address &ip) const |
Returns binary AND of the two addresses. More... | |
std::string | str (bool printUnspec=true) const |
Returns the string representation of the address (e.g. More... | |
uint32 | getInt () const |
Returns the address as an int. More... | |
int | getDByte (int i) const |
Returns the corresponding part of the address specified by the index ("[0].[1].[2].[3]") More... | |
char | getIPClass () const |
Returns the network class of the address: char 'A', 'B', 'C', 'D', 'E', or '?' (returned when the address begins with at least five 1 bits.) More... | |
AddressCategory | getAddressCategory () const |
Get the IPv4 address category. More... | |
bool | isLimitedBroadcastAddress () const |
Returns true if this address is the limited broadcast address, i.e. More... | |
bool | isMulticast () const |
Returns true if this address is in the multicast address range, 224.0.0.0 thru 239.255.255.255, that is, it's a class D address. More... | |
bool | isUnicast () const |
Returns true if this address is unicast address. More... | |
bool | isLinkLocalMulticast () const |
Returns true if this address is in the range 224.0.0.0 to 224.0.0.255. More... | |
IPv4Address | getNetwork () const |
Returns an address with the network part of the address (the bits of the hosts part are to 0). More... | |
IPv4Address | getNetworkMask () const |
Returns an address with the network mask corresponding to the address class. More... | |
bool | isNetwork (const IPv4Address &toCmp) const |
Indicates if the address is from the same network. More... | |
bool | prefixMatches (const IPv4Address &to_cmp, int numbits) const |
Compares the first numbits bits of the two addresses. More... | |
int | getNumMatchingPrefixBits (const IPv4Address &to_cmp) const |
Indicates how many bits from the to_cmp address, starting counting from the left, matches the address. More... | |
int | getNetmaskLength () const |
Counts 1 bits in a netmask. More... | |
IPv4Address | getPrefix (int prefixLength) const |
Get the first prefixLength bits of the address, with the rest set to zero. More... | |
bool | isValidNetmask () const |
Returns true if the address is a valid netmask, i.e. More... | |
IPv4Address | makeBroadcastAddress (IPv4Address netmask) const |
Returns the broadcast address for the given netmask. More... | |
bool | operator== (const IPv4Address &addr1) const |
Returns equals(addr). More... | |
bool | operator!= (const IPv4Address &addr1) const |
Returns !equals(addr). More... | |
bool | operator< (const IPv4Address &addr1) const |
Compares two IPv4 addresses. More... | |
bool | operator<= (const IPv4Address &addr1) const |
bool | operator> (const IPv4Address &addr1) const |
bool | operator>= (const IPv4Address &addr1) const |
IPv4Address () | |
name Constructors, destructor More... | |
IPv4Address (uint32 ip) | |
IPv4 address as int. More... | |
IPv4Address (int i0, int i1, int i2, int i3) | |
IPv4 address bytes: "i0.i1.i2.i3" format. More... | |
IPv4Address (const char *text) | |
IPv4 address given as text: "192.66.86.1". More... | |
IPv4Address (const IPv4Address &obj) | |
Copy constructor. More... | |
~IPv4Address () | |
void | set (uint32 ip) |
name Setting the address More... | |
void | set (int i0, int i1, int i2, int i3) |
IPv4 address bytes: "i0.i1.i2.i3" format. More... | |
void | set (const char *t) |
IPv4 address given as text: "192.66.86.1". More... | |
Static Public Member Functions | |
static bool | maskedAddrAreEqual (const IPv4Address &addr1, const IPv4Address &addr2, const IPv4Address &netmask) |
Test if the masked addresses (ie the mask is applied to addr1 and addr2) are equal. More... | |
static bool | isWellFormed (const char *text) |
Returns true if the format of the string corresponds to an IPv4 address with the dotted notation ("192.66.86.1"), and false otherwise. More... | |
static IPv4Address | makeNetmask (int length) |
Creates and returns a netmask with the given length. More... | |
Static Public Attributes | |
Predefined addresses | |
static const IPv4Address | UNSPECIFIED_ADDRESS |
0.0.0.0 More... | |
static const IPv4Address | LOOPBACK_ADDRESS |
127.0.0.1 More... | |
static const IPv4Address | LOOPBACK_NETMASK |
255.0.0.0 More... | |
static const IPv4Address | ALLONES_ADDRESS |
255.255.255.255 More... | |
static const IPv4Address | ALL_HOSTS_MCAST |
224.0.0.1 All hosts on a subnet More... | |
static const IPv4Address | ALL_ROUTERS_MCAST |
224.0.0.2 All routers on a subnet More... | |
static const IPv4Address | ALL_DVMRP_ROUTERS_MCAST |
224.0.0.4 All DVMRP routers More... | |
static const IPv4Address | ALL_OSPF_ROUTERS_MCAST |
224.0.0.5 All OSPF routers (DR Others) More... | |
static const IPv4Address | ALL_OSPF_DESIGNATED_ROUTERS_MCAST |
224.0.0.6 All OSPF Designated Routers More... | |
static const IPv4Address | ALL_IGMPV3_ROUTERS_MCAST |
224.0.0.22 All IGMPv3 routers More... | |
static const IPv4Address | LL_MANET_ROUTERS |
224.0.0.109 Manet all designated routers More... | |
static const IPv4Address | ALL_RIP_ROUTERS_MCAST |
Static Protected Member Functions | |
static bool | parseIPAddress (const char *text, unsigned char tobytes[]) |
static void | _checkNetmaskLength (int length) |
static uint32 | _makeNetmask (int length) |
Protected Attributes | |
uint32 | addr |
IPv4 address.
IPv4 address category.
RFC 5735 Special Use IPv4 Addresses January 2010
0.0.0.0/8 "This" Network RFC 1122, Section 3.2.1.3 10.0.0.0/8 Private-Use Networks RFC 1918 127.0.0.0/8 Loopback RFC 1122, Section 3.2.1.3 169.254.0.0/16 Link Local RFC 3927 172.16.0.0/12 Private-Use Networks RFC 1918 192.0.0.0/24 IETF Protocol Assignments RFC 5736 192.0.2.0/24 TEST-NET-1 RFC 5737 192.88.99.0/24 6to4 Relay Anycast RFC 3068 192.168.0.0/16 Private-Use Networks RFC 1918 198.18.0.0/15 Network Interconnect Device Benchmark Testing RFC 2544 198.51.100.0/24 TEST-NET-2 RFC 5737 203.0.113.0/24 TEST-NET-3 RFC 5737 224.0.0.0/4 Multicast RFC 3171 240.0.0.0/4 Reserved for Future Use RFC 1112, Section 4 255.255.255.255/32 Limited Broadcast RFC 919, Section 7; RFC 922, Section 7
Enumerator | |
---|---|
UNSPECIFIED | |
THIS_NETWORK | |
LOOPBACK | |
MULTICAST | |
BROADCAST | |
IETF | |
TEST_NET | |
IPv6_TO_IPv4_RELAY | |
BENCHMARK | |
RESERVED | |
LINKLOCAL | |
PRIVATE_NETWORK | |
GLOBAL |
|
inline |
name Constructors, destructor
Default constructor, initializes to 0.0.0.0.
Referenced by getNetwork(), and getNetworkMask().
|
inline |
IPv4 address bytes: "i0.i1.i2.i3" format.
|
inlineexplicit |
IPv4 address given as text: "192.66.86.1".
|
inline |
Copy constructor.
|
staticprotected |
|
inlinestaticprotected |
Referenced by prefixMatches().
|
inline |
Returns binary AND of the two addresses.
Referenced by inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::NetworkInfo::dumpRoutingInfo(), inet::IPv4RoutingTable::updateNetmaskRoutes(), and inet::bgp::BGPRouting::updateSendProcess().
|
inline |
IPv4Address::AddressCategory inet::IPv4Address::getAddressCategory | ( | ) | const |
Get the IPv4 address category.
Referenced by inet::sctp::SCTPAssociation::getAddressLevel().
|
inline |
Returns the corresponding part of the address specified by the index ("[0].[1].[2].[3]")
Referenced by inet::IPv4RoutingTable::findBestMatchingMulticastRoute(), inet::IPv4RoutingTable::findBestMatchingRoute(), inet::IPv4RoutingTable::getGatewayForDestAddr(), inet::IPv4RoutingTable::getInterfaceByAddress(), inet::IPv4RoutingTable::getInterfaceForDestAddr(), getIPClass(), getNetwork(), inet::IPv4RoutingTable::isLocalAddress(), inet::IPv4RoutingTable::isLocalBroadcastAddress(), inet::IPv4RoutingTable::isLocalMulticastAddress(), and inet::MACAddress::makeMulticastAddress().
|
inline |
Returns the address as an int.
Referenced by inet::ospf::Neighbor::addToRetransmissionList(), inet::FlatNetworkConfigurator::assignAddresses(), inet::ospf::Area::calculateShortestPathTree(), inet::IPv4RoutingTable::configureRouterId(), inet::IPv4NetworkConfigurator::createInterfaceInfo(), inet::bgp::BGPRouting::createSession(), inet::bgp::BGPRouting::deleteBGPRoutingEntry(), inet::RSVP::delSession(), inet::serializer::SCTPSerializer::deserialize(), inet::doPacking(), inet::IPv4NetworkConfigurator::findInterfaceOnLinkByNodeAddress(), inet::DHCPServer::getAvailableLease(), getNumMatchingPrefixBits(), inet::tcp::TCP_NSC::handleIpInputMessage(), inet::ExtInterface::handleMessage(), inet::TED::initializeTED(), inet::ospf::Router::installASExternalLSA(), inet::IPv4RoutingTable::internalAddMulticastRoute(), inet::IPv4RoutingTable::internalAddRoute(), inet::bgp::BGPRouting::isInTable(), inet::ospf::Router::lookup(), makeBroadcastAddress(), inet::tcp::TCP_NSC::mapRemote2Nsc(), inet::ospf::Router::notifyAboutRoutingTableChanges(), inet::ospf::operator&(), operator<(), operator<=(), operator>(), operator>=(), inet::ospf::operator|(), inet::ospf::Area::originateRouterLSA(), inet::ICMP::possiblyLocalBroadcast(), inet::LDP::processLDPHello(), inet::LinkStateRouting::processLINK_STATE_MESSAGE(), inet::SimpleClassifier::readItemFromXML(), inet::sctp::SCTPAssociation::sendInit(), inet::serializer::IPv4Serializer::serialize(), inet::HostAutoConfigurator::setupNetworkLayer(), inet::DHCPServer::startApp(), and inet::serializer::Buffer::writeIPv4Address().
char inet::IPv4Address::getIPClass | ( | ) | const |
Returns the network class of the address: char 'A', 'B', 'C', 'D', 'E', or '?' (returned when the address begins with at least five 1 bits.)
Referenced by getNetwork(), and getNetworkMask().
int inet::IPv4Address::getNetmaskLength | ( | ) | const |
Counts 1 bits in a netmask.
E.g. for 255.255.254.0, it will return 23.
Referenced by inet::LDP::rebuildFecList(), inet::visualizer::RoutingTableVisualizerBase::DirectiveResolver::resolveDirective(), inet::InterfaceTable::updateLinkDisplayString(), and inet::bgp::BGPRouting::updateSendProcess().
IPv4Address inet::IPv4Address::getNetwork | ( | ) | const |
Returns an address with the network part of the address (the bits of the hosts part are to 0).
For D and E class addresses, it returns a null address.
IPv4Address inet::IPv4Address::getNetworkMask | ( | ) | const |
Returns an address with the network mask corresponding to the address class.
For D and E class addresses, it returns a null address.
Referenced by isNetwork().
int inet::IPv4Address::getNumMatchingPrefixBits | ( | const IPv4Address & | to_cmp | ) | const |
Indicates how many bits from the to_cmp address, starting counting from the left, matches the address.
E.g. if the address is 130.206.72.237, and to_cmp 130.206.72.0, 24 will be returned.
Typical usage for comparing IPv4 prefixes.
|
inline |
Get the first prefixLength bits of the address, with the rest set to zero.
|
inline |
Returns true if this address is the limited broadcast address, i.e.
255.255.255.255.
Referenced by inet::L3Address::isBroadcast(), inet::L3Address::isUnicast(), inet::IPv4::preroutingFinish(), inet::UDP::processUDPPacket(), inet::IPv4::resolveNextHopMacAddress(), and inet::ICMP::sendErrorMessage().
|
inline |
Returns true if this address is in the range 224.0.0.0 to 224.0.0.255.
These addresses are reserved for local purposes meaning, that routers should not forward these datagrams since the applications that use these addresses do not need the datagrams to go further than one hop.
Referenced by inet::PIMSM::addNewRouteSG(), inet::IPv4::encapsulate(), inet::IPv4::forwardMulticastPacket(), inet::IGMPv2::multicastGroupJoined(), inet::IGMPv2::multicastGroupLeft(), inet::IGMPv3::multicastSourceListChanged(), inet::IPv4::preroutingFinish(), inet::IGMPv3::sendGroupReport(), inet::IGMPv2::sendLeave(), inet::IGMPv2::sendQuery(), and inet::IGMPv2::sendReport().
|
inline |
Returns true if this address is in the multicast address range, 224.0.0.0 thru 239.255.255.255, that is, it's a class D address.
Referenced by inet::IPv4InterfaceData::addMulticastListener(), inet::PIMSM::addNewRouteSG(), inet::IPv4InterfaceData::changeMulticastGroupMembership(), inet::IPv4::datagramLocalOut(), inet::NetworkInfo::dumpRoutingInfo(), inet::IPv4::encapsulate(), inet::IPv4InterfaceData::findHostGroupData(), inet::IPv4InterfaceData::findRouterGroupData(), inet::IPv4::forwardMulticastPacket(), getAddressCategory(), inet::IGMPv2::HostGroupData::HostGroupData(), inet::IGMPv3::HostGroupData::HostGroupData(), inet::IPv4RoutingTable::internalAddMulticastRoute(), inet::L3Address::isMulticast(), inet::L3Address::isUnicast(), inet::MACAddress::makeMulticastAddress(), inet::IGMPv2::multicastGroupJoined(), inet::IGMPv2::multicastGroupLeft(), inet::IPv4::preroutingFinish(), inet::UDP::processUDPPacket(), inet::IPv4NetworkConfigurator::readManualMulticastRouteConfiguration(), inet::IPv4NetworkConfigurator::readMulticastGroupConfiguration(), inet::LDP::rebuildFecList(), inet::TED::rebuildRoutingTable(), inet::IPv4InterfaceData::removeHostGroupData(), inet::IPv4InterfaceData::removeRouterGroupData(), inet::IPv4::resolveNextHopMacAddress(), inet::IGMPv2::RouterGroupData::RouterGroupData(), inet::IGMPv3::RouterGroupData::RouterGroupData(), inet::ICMP::sendErrorMessage(), inet::IGMPv3::sendGroupReport(), inet::LDP::sendHelloTo(), inet::PIMDM::sendJoinPacket(), inet::IGMPv2::sendLeave(), inet::PIMDM::sendPrunePacket(), inet::IGMPv2::sendQuery(), inet::IGMPv2::sendReport(), inet::IPv4InterfaceData::setMulticastListeners(), and inet::PIMDM::unroutableMulticastPacketArrived().
bool inet::IPv4Address::isNetwork | ( | const IPv4Address & | toCmp | ) | const |
Indicates if the address is from the same network.
|
inline |
Returns true if this address is unicast address.
|
inline |
True if all four address bytes are zero.
The null value is customarily used to represent a missing, unspecified or invalid address in the simulation models.
Referenced by inet::PIMSM::addNewRouteSG(), inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::RSVP::allocateResource(), inet::DHCPClient::chooseInterface(), inet::IPv4NetworkConfigurator::createInterfaceInfo(), inet::IPv4NetworkConfigurator::dumpConfig(), inet::NetworkInfo::dumpRoutingInfo(), inet::IPv4::encapsulate(), inet::PIMSM::findRouteSG(), inet::IPv4::fragmentAndSend(), getAddressCategory(), inet::PingApp::getAllAddresses(), inet::DHCPServer::getAvailableLease(), inet::IPv4RoutingTable::getInterfaceByAddress(), inet::L3AddressResolver::getInterfaceIPv4Address(), inet::ospf::Router::getPreferredEntry(), inet::PIMSM::handleNodeStart(), inet::PIMSM::IamDR(), inet::IPv4Route::info(), inet::GlobalARP::initialize(), inet::IPv4RoutingTable::internalAddMulticastRoute(), inet::IPv4RoutingTable::internalAddRoute(), inet::ospf::Router::isDestinationUnreachable(), inet::IPv4RoutingTable::isLocalBroadcastAddress(), isNetwork(), inet::L3Address::isUnspecified(), inet::bgp::BGPRouting::loadSessionConfig(), inet::IPv4MulticastRoute::matches(), inet::operator<<(), inet::RSVP::pathProblem(), inet::ICMP::possiblyLocalBroadcast(), inet::IPv4::preroutingFinish(), inet::IPv4RoutingTable::printMulticastRoutingTable(), inet::IPv4RoutingTable::printRoutingTable(), inet::ARP::processARPPacket(), inet::PIMSM::processAssertPacket(), inet::DHCPServer::processDHCPMessage(), inet::RSVP::processPathMsg(), inet::IGMPv2::processQuery(), inet::IGMPv3::processQuery(), inet::LDP::rebuildFecList(), inet::DHCPClient::recordLease(), inet::DHCPClient::recordOffer(), inet::RSVP::refreshPath(), inet::visualizer::RoutingTableVisualizerBase::DirectiveResolver::resolveDirective(), inet::IPv4NetworkConfigurator::resolveInterfaceAndGateway(), inet::IPv4::routeUnicastPacket(), inet::RSVP::scheduleRefreshTimer(), inet::DHCPServer::sendACK(), inet::ARP::sendARPRequest(), inet::sctp::SCTPNatHook::sendBackError(), inet::IPv4::sendDatagramToOutput(), inet::ICMP::sendErrorMessage(), inet::PIMDM::sendJoinPacket(), inet::DHCPServer::sendNAK(), inet::DHCPServer::sendOffer(), inet::PIMDM::sendPrunePacket(), inet::IGMPv2::sendQuery(), str(), inet::PIMDM::unroutableMulticastPacketArrived(), inet::PIMSM::unroutableMulticastPacketArrived(), and inet::PIMSM::updateDesignatedRouterAddress().
|
inline |
Returns true if the address is a valid netmask, i.e.
ones are contiguous and shifted fully to the left in the binary representation.
Referenced by inet::IPv4RoutingTable::internalAddMulticastRoute(), inet::IPv4RoutingTable::internalAddRoute(), inet::IPv4NetworkConfigurator::readManualMulticastRouteConfiguration(), and inet::IPv4NetworkConfigurator::readManualRouteConfiguration().
|
static |
Returns true if the format of the string corresponds to an IPv4 address with the dotted notation ("192.66.86.1"), and false otherwise.
This function can be used to verify an IPv4 address string before assigning it to an IPv4Address object (both its ctor and set() function raises an error if the string has invalid format.)
Referenced by inet::IPv4NetworkConfigurator::parseAddressAndSpecifiedBits(), inet::RoutingTableParser::parseRouting(), inet::IPv4NetworkConfigurator::resolveInterfaceAndGateway(), and inet::L3Address::tryParse().
IPv4Address inet::IPv4Address::makeBroadcastAddress | ( | IPv4Address | netmask | ) | const |
Returns the broadcast address for the given netmask.
Referenced by inet::IPv4RoutingTable::findInterfaceByLocalBroadcastAddress(), inet::IPv4InterfaceData::getNetworkBroadcastAddress(), inet::ospf::Area::getUniqueLinkStateID(), inet::ospf::Router::getUniqueLinkStateID(), and inet::IPv4RoutingTable::isLocalBroadcastAddress().
|
inlinestatic |
Creates and returns a netmask with the given length.
For example, for length=23 it will return 255.255.254.0.
Referenced by inet::L3Address::matches(), inet::bgp::BGPRouting::processMessage(), inet::IPv4NetworkConfigurator::readManualMulticastRouteConfiguration(), inet::IPv4NetworkConfigurator::readManualRouteConfiguration(), inet::IPv4Route::setPrefixLength(), and inet::IPv4MulticastRoute::setPrefixLength().
|
static |
Test if the masked addresses (ie the mask is applied to addr1 and addr2) are equal.
Referenced by inet::ospf::IPv4AddressRange::containedByRange(), inet::ospf::IPv4AddressRange::contains(), inet::ospf::IPv4AddressRange::containsRange(), inet::IPv4RoutingTable::findBestMatchingRoute(), inet::bgp::BGPRouting::isInRoutingTable(), inet::InterfaceTable::isNeighborAddress(), isNetwork(), inet::L3Address::matches(), inet::IPv4MulticastRoute::matches(), inet::DHCPServer::processDHCPMessage(), inet::PIMDM::receiveSignal(), inet::IPv4::sendDatagramToOutput(), inet::HostAutoConfigurator::setupNetworkLayer(), and inet::DHCPServer::startApp().
|
inline |
Returns !equals(addr).
|
inline |
Compares two IPv4 addresses.
|
inline |
|
inline |
Assignment.
|
inline |
Returns equals(addr).
|
inline |
|
inline |
|
staticprotected |
Referenced by isWellFormed(), and set().
bool inet::IPv4Address::prefixMatches | ( | const IPv4Address & | to_cmp, |
int | numbits | ||
) | const |
Compares the first numbits bits of the two addresses.
Referenced by inet::LDP::lookupLabel(), and inet::MultiFieldClassifier::Filter::matches().
|
inline |
name Setting the address
IPv4 address as int
Referenced by inet::bgp::BGPRouting::createSession(), inet::doUnpacking(), inet::ospf::operator&(), and inet::ospf::operator|().
void inet::IPv4Address::set | ( | int | i0, |
int | i1, | ||
int | i2, | ||
int | i3 | ||
) |
IPv4 address bytes: "i0.i1.i2.i3" format.
void inet::IPv4Address::set | ( | const char * | t | ) |
IPv4 address given as text: "192.66.86.1".
std::string inet::IPv4Address::str | ( | bool | printUnspec = true | ) | const |
Returns the string representation of the address (e.g.
"152.66.86.92")
printUnspec | show 0.0.0.0 as "<unspec>" if true |
Referenced by inet::ospf::Area::addAddressRange(), inet::IPv4InterfaceData::addMulticastListener(), inet::DHCPClient::bindLease(), inet::IPv4InterfaceData::changeMulticastGroupMembership(), inet::bgp::BGPRouting::decisionProcess(), inet::ospf::Area::detailedInfo(), inet::IPv4NetworkConfigurator::dumpConfig(), inet::PacketDump::dumpIPv4(), inet::IPv4::encapsulate(), inet::RSVP::evalNextHopInterface(), inet::LDP::findInterfaceFromPeerAddr(), inet::TED::getInterfaceAddrByPeerAddress(), inet::LDP::getPeerSocket(), inet::PIMInterface::info(), inet::ospf::Area::info(), inet::TED::initializeTED(), inet::IPv4RoutingTable::internalAddMulticastRoute(), inet::IPv4RoutingTable::internalAddRoute(), inet::ospf::OSPFConfigReader::loadAreaFromXML(), inet::bgp::BGPRouting::loadConfigFromXML(), inet::ospf::OSPFConfigReader::loadHostRoute(), inet::ospf::OSPFConfigReader::loadInterfaceParameters(), inet::bgp::BGPRouting::loadSessionConfig(), inet::ospf::OSPFConfigReader::loadVirtualLink(), inet::bgp::operator<<(), inet::ospf::operator<<(), inet::operator<<(), inet::TED::peerRemoteInterface(), inet::IPv4RoutingTable::printMulticastRoutingTable(), inet::IPv4RoutingTable::printRoutingTable(), inet::PIMSM::processAssertPacket(), inet::IPv4NetworkConfigurator::readManualMulticastRouteConfiguration(), inet::IPv4NetworkConfigurator::readManualRouteConfiguration(), inet::IPv4NetworkConfigurator::readMulticastGroupConfiguration(), inet::RoutingTableRecorder::recordInterfaceChange(), inet::visualizer::RoutingTableVisualizerBase::DirectiveResolver::resolveDirective(), inet::rtp::RTP::resolveMTU(), inet::PIMSM::sendPIMJoin(), inet::PIMSM::sendPIMPrune(), inet::IPv4InterfaceData::setMulticastListeners(), inet::HostAutoConfigurator::setupNetworkLayer(), inet::IGMPv2::startHostTimer(), inet::L3Address::str(), and inet::InterfaceTable::updateLinkDisplayString().
|
protected |
Referenced by doAnd(), equals(), getAddressCategory(), getNetmaskLength(), getNumMatchingPrefixBits(), IPv4Address(), maskedAddrAreEqual(), operator=(), prefixMatches(), set(), and str().
|
static |
224.0.0.4 All DVMRP routers
|
static |
224.0.0.1 All hosts on a subnet
Referenced by inet::IPv4RoutingTable::configureInterfaceForIPv4(), inet::IPv4NodeConfigurator::prepareInterface(), inet::IGMPv3::sendGeneralQuery(), inet::IGMPv2::sendQuery(), and inet::HostAutoConfigurator::setupNetworkLayer().
|
static |
224.0.0.22 All IGMPv3 routers
Referenced by inet::IGMPv3::initialize(), inet::IGMPv3::processHostGeneralQueryTimer(), and inet::IGMPv3::sendGroupReport().
|
static |
224.0.0.6 All OSPF Designated Routers
Referenced by inet::ospf::LinkStateUpdateHandler::acknowledgeLSA(), inet::ospf::Interface::addDelayedAcknowledgement(), inet::ospf::Interface::floodLSA(), inet::ospf::OSPFConfigReader::joinMulticastGroups(), inet::ospf::LinkStateRequestHandler::processPacket(), inet::ospf::LinkStateUpdateHandler::processPacket(), inet::ospf::MessageHandler::processPacket(), and inet::ospf::Interface::sendDelayedAcknowledgements().
|
static |
224.0.0.5 All OSPF routers (DR Others)
Referenced by inet::ospf::LinkStateUpdateHandler::acknowledgeLSA(), inet::ospf::Interface::addDelayedAcknowledgement(), inet::ospf::Interface::floodLSA(), inet::ospf::OSPFConfigReader::joinMulticastGroups(), inet::ospf::InterfaceStateBackup::processEvent(), inet::ospf::InterfaceStatePointToPoint::processEvent(), inet::ospf::InterfaceStateDesignatedRouter::processEvent(), inet::ospf::InterfaceStateNotDesignatedRouter::processEvent(), inet::ospf::InterfaceStateWaiting::processEvent(), inet::ospf::LinkStateRequestHandler::processPacket(), inet::ospf::LinkStateUpdateHandler::processPacket(), inet::ospf::Neighbor::retransmitDatabaseDescriptionPacket(), inet::ospf::Neighbor::sendDatabaseDescriptionPacket(), inet::ospf::Interface::sendDelayedAcknowledgements(), and inet::ospf::Neighbor::sendLinkStateRequestPacket().
|
static |
|
static |
224.0.0.2 All routers on a subnet
Referenced by inet::IPv4RoutingTable::configureInterfaceForIPv4(), inet::LDP::handleMessage(), inet::IPv4NodeConfigurator::prepareInterface(), inet::IGMPv2::sendLeave(), and inet::HostAutoConfigurator::setupNetworkLayer().
|
static |
255.255.255.255
Referenced by inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::FlatNetworkConfigurator::assignAddresses(), inet::ospf::Area::calculateShortestPathTree(), inet::IPv4RoutingTable::configureRouterId(), inet::PIMSM::createIPv4Route(), inet::ospf::Area::createRoutingTableEntryFromSummaryLSA(), inet::NetworkInfo::dumpRoutingInfo(), inet::IPv4AddressType::getBroadcastAddress(), inet::IPv4InterfaceData::IPv4InterfaceData(), inet::IPv4::preroutingFinish(), inet::bgp::BGPRouting::processMessage(), inet::UDPBasicBurst::processStart(), inet::TED::rebuildRoutingTable(), inet::IPv4::routeLocalBroadcastPacket(), inet::bgp::RoutingTableEntry::RoutingTableEntry(), inet::ospf::RoutingTableEntry::RoutingTableEntry(), inet::DHCPServer::sendACK(), inet::DHCPClient::sendDecline(), inet::DHCPClient::sendDiscover(), inet::DHCPServer::sendNAK(), inet::DHCPServer::sendOffer(), inet::DHCPClient::sendRequest(), inet::DHCPClient::unbindLease(), inet::PIMDM::unroutableMulticastPacketArrived(), and inet::IPv4RoutingTable::updateNetmaskRoutes().
|
static |
224.0.0.109 Manet all designated routers
Referenced by inet::IPv4AddressType::getLinkLocalManetRoutersMulticastAddress().
|
static |
127.0.0.1
Referenced by inet::IPv4RoutingTable::configureLoopbackForIPv4(), inet::IPv4NodeConfigurator::prepareInterface(), and inet::ICMP::sendErrorMessage().
|
static |
255.0.0.0
Referenced by inet::IPv4RoutingTable::configureLoopbackForIPv4(), and inet::IPv4NodeConfigurator::prepareInterface().
|
static |
0.0.0.0
Referenced by inet::PIMSM::addNewRouteG(), inet::IPv4NetworkConfigurator::addStaticRoutes(), inet::ospf::Area::calculateNextHops(), inet::PIMSM::createIPv4Route(), inet::IPv4::datagramLocalInHook(), inet::PIMSM::findRouteG(), inet::InterfaceEntry::getIPv4Address(), inet::GlobalARP::getL3AddressFor(), inet::ARP::getL3AddressFor(), inet::IPv4AddressType::getLinkLocalAddress(), inet::IPv4AddressType::getUnspecifiedAddress(), inet::IPv4::handleIncomingDatagram(), inet::IPv4::handlePacketFromHL(), inet::RoutingTableParser::parseRouting(), inet::PIMSM::processAssertG(), inet::IPv4NetworkConfigurator::readManualMulticastRouteConfiguration(), inet::PIMDM::sendAssertPacket(), inet::PIMDM::sendGraftPacket(), inet::PIMDM::sendJoinPacket(), inet::PIMSM::sendPIMAssert(), inet::PIMSM::sendPIMJoin(), inet::PIMSM::sendPIMPrune(), inet::PIMSM::sendPIMRegister(), inet::PIMSM::sendPIMRegisterNull(), inet::PIMDM::sendPrunePacket(), inet::PIMDM::sendStateRefreshPacket(), and inet::PIMDM::unroutableMulticastPacketArrived().