|
|
| 311 |
{ |
311 |
{ |
| 312 |
return false; |
312 |
return false; |
| 313 |
} |
313 |
} |
|
|
314 |
|
| 315 |
Ptr<NetDevice> boundNetDevice = Socket::GetBoundNetDevice(); |
| 316 |
if (boundNetDevice) |
| 317 |
{ |
| 318 |
if (boundNetDevice != incomingInterface->GetDevice()) |
| 319 |
{ |
| 320 |
return false; |
| 321 |
} |
| 322 |
} |
| 323 |
|
| 314 |
NS_LOG_LOGIC ("src = " << m_src << " dst = " << m_dst); |
324 |
NS_LOG_LOGIC ("src = " << m_src << " dst = " << m_dst); |
| 315 |
if ((m_src == Ipv4Address::GetAny () || ipHeader.GetDestination () == m_src) && |
325 |
if ((m_src == Ipv4Address::GetAny () || ipHeader.GetDestination () == m_src) && |
| 316 |
(m_dst == Ipv4Address::GetAny () || ipHeader.GetSource () == m_dst) && |
326 |
(m_dst == Ipv4Address::GetAny () || ipHeader.GetSource () == m_dst) && |