Internet: (fixes #2627) - Ipv6RawSocket must check bound interface

This commit is contained in:
Tommaso Pecorella
2017-01-21 00:42:09 +01:00
parent 09b1d63e2b
commit 824ce1e528
2 changed files with 2 additions and 1 deletions

View File

@@ -65,6 +65,7 @@ Bugs fixed
- Bug 2605 - A HT/VHT station transmitting to a legacy access point results in a null throughput
- Bug 2607 - Minstrel HT manager results in an endless loop when a 802.11ac station is transmitting to a 802.11a access point
- Bug 2614 - RIP header version should be set to 2
- Bug 2627 - Ipv6RawSocket does not honor the bound interface when sending packets
Known issues
------------

View File

@@ -245,7 +245,7 @@ int Ipv6RawSocketImpl::SendTo (Ptr<Packet> p, uint32_t flags, const Address& toA
hdr.SetDestinationAddress (dst);
SocketErrno err = ERROR_NOTERROR;
Ptr<Ipv6Route> route = 0;
Ptr<NetDevice> oif (0); /*specify non-zero if bound to a source address */
Ptr<NetDevice> oif = m_boundnetdevice; //specify non-zero if bound to a specific device
if (!m_src.IsAny ())
{