diff --git a/src/click/model/ipv4-l3-click-protocol.cc b/src/click/model/ipv4-l3-click-protocol.cc index dd975dd44..b24c7bf9d 100644 --- a/src/click/model/ipv4-l3-click-protocol.cc +++ b/src/click/model/ipv4-l3-click-protocol.cc @@ -33,7 +33,7 @@ #include "ns3/ipv4-raw-socket-impl.h" #include "ns3/arp-l3-protocol.h" -#include "ns3/ipv4-l4-protocol.h" +#include "ns3/ip-l4-protocol.h" #include "ns3/icmpv4-l4-protocol.h" #include "ns3/loopback-net-device.h" @@ -738,23 +738,23 @@ Ipv4L3ClickProtocol::LocalDeliver (Ptr packet, Ipv4Header const&ip m_localDeliverTrace (ip, packet, iif); - Ptr protocol = GetProtocol (ip.GetProtocol ()); + Ptr protocol = GetProtocol (ip.GetProtocol ()); if (protocol != 0) { // we need to make a copy in the unlikely event we hit the // RX_ENDPOINT_UNREACH codepath Ptr copy = p->Copy (); - enum Ipv4L4Protocol::RxStatus status = + enum IpL4Protocol::RxStatus status = protocol->Receive (p, ip, GetInterface (iif)); switch (status) { - case Ipv4L4Protocol::RX_OK: + case IpL4Protocol::RX_OK: // fall through - case Ipv4L4Protocol::RX_ENDPOINT_CLOSED: + case IpL4Protocol::RX_ENDPOINT_CLOSED: // fall through - case Ipv4L4Protocol::RX_CSUM_FAILED: + case IpL4Protocol::RX_CSUM_FAILED: break; - case Ipv4L4Protocol::RX_ENDPOINT_UNREACH: + case IpL4Protocol::RX_ENDPOINT_UNREACH: if (ip.GetDestination ().IsBroadcast () == true || ip.GetDestination ().IsMulticast () == true) { @@ -782,7 +782,7 @@ Ipv4L3ClickProtocol::LocalDeliver (Ptr packet, Ipv4Header const&ip Ptr Ipv4L3ClickProtocol::GetIcmp (void) const { - Ptr prot = GetProtocol (Icmpv4L4Protocol::GetStaticProtocolNumber ()); + Ptr prot = GetProtocol (Icmpv4L4Protocol::GetStaticProtocolNumber ()); if (prot != 0) { return prot->GetObject (); @@ -794,12 +794,12 @@ Ipv4L3ClickProtocol::GetIcmp (void) const } void -Ipv4L3ClickProtocol::Insert (Ptr protocol) +Ipv4L3ClickProtocol::Insert (Ptr protocol) { m_protocols.push_back (protocol); } -Ptr +Ptr Ipv4L3ClickProtocol::GetProtocol (int protocolNumber) const { for (L4List_t::const_iterator i = m_protocols.begin (); i != m_protocols.end (); ++i) diff --git a/src/click/model/ipv4-l3-click-protocol.h b/src/click/model/ipv4-l3-click-protocol.h index 2b7d821a8..77d224006 100644 --- a/src/click/model/ipv4-l3-click-protocol.h +++ b/src/click/model/ipv4-l3-click-protocol.h @@ -42,7 +42,7 @@ class Ipv4Route; class Node; class Socket; class Ipv4RawSocketImpl; -class Ipv4L4Protocol; +class IpL4Protocol; class Icmpv4L4Protocol; /** @@ -82,7 +82,7 @@ public: * a working L4 Protocol and returned from this method. * The caller does not get ownership of the returned pointer. */ - void Insert (Ptr protocol); + void Insert (Ptr protocol); /** * \param protocolNumber number of protocol to lookup @@ -93,7 +93,7 @@ public: * to forward packets up the stack to the right protocol. * It is also called from NodeImpl::GetUdp for example. */ - Ptr GetProtocol (int protocolNumber) const; + Ptr GetProtocol (int protocolNumber) const; /** * \param ttl default ttl to use @@ -242,7 +242,7 @@ private: typedef std::vector > Ipv4InterfaceList; typedef std::list > SocketList; - typedef std::list > L4List_t; + typedef std::list > L4List_t; Ptr m_routingProtocol; bool m_ipForward;