branch merge
This commit is contained in:
commit
07e526f6de
7 files changed
+413
-38
No files matched your search
@@ -522,8 +522,17 @@ Ipv4L3Protocol::Receive( Ptr<NetDevice> device, Ptr<const Packet> p, uint16_t pr
|
||||
ipv4Interface = *i;
|
||||
if (ipv4Interface->GetDevice () == device)
|
||||
{
|
||||
m_rxTrace (packet, index);
|
||||
break;
|
||||
if (ipv4Interface->IsUp ())
|
||||
{
|
||||
m_rxTrace (packet, index);
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
NS_LOG_LOGIC ("Dropping received packet-- interface is down");
|
||||
m_dropTrace (packet);
|
||||
return;
|
||||
}
|
||||
}
|
||||
index++;
|
||||
}
|
||||
@@ -1074,7 +1083,7 @@ Ipv4L3Protocol::SetDown (uint32_t ifaceIndex)
|
||||
Ptr<Ipv4Interface> interface = GetInterface (ifaceIndex);
|
||||
interface->SetDown ();
|
||||
|
||||
// Remove all routes that are going through this interface
|
||||
// Remove all static routes that are going through this interface
|
||||
bool modified = true;
|
||||
while (modified)
|
||||
{
|
||||
|
||||
@@ -131,6 +131,7 @@ def build(bld):
|
||||
'ipv4-interface.cc',
|
||||
'ipv4-l3-protocol.cc',
|
||||
'ipv4-static-routing.cc',
|
||||
'ipv4-global-routing.cc',
|
||||
'ipv4-end-point.cc',
|
||||
'udp-l4-protocol.cc',
|
||||
'tcp-l4-protocol.cc',
|
||||
@@ -164,6 +165,7 @@ def build(bld):
|
||||
'ipv4-interface.h',
|
||||
'ipv4-l3-protocol.h',
|
||||
'ipv4-static-routing.h',
|
||||
'ipv4-global-routing.h',
|
||||
'icmpv4.h',
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user