From 824ce1e52855dc7b9e700570467b804f06cdf25a Mon Sep 17 00:00:00 2001 From: Tommaso Pecorella Date: Sat, 21 Jan 2017 00:42:09 +0100 Subject: [PATCH] Internet: (fixes #2627) - Ipv6RawSocket must check bound interface --- RELEASE_NOTES | 1 + src/internet/model/ipv6-raw-socket-impl.cc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index ed9c41df6..0ac1e16fc 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -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 ------------ diff --git a/src/internet/model/ipv6-raw-socket-impl.cc b/src/internet/model/ipv6-raw-socket-impl.cc index 3de31568b..b5d7f4a1d 100644 --- a/src/internet/model/ipv6-raw-socket-impl.cc +++ b/src/internet/model/ipv6-raw-socket-impl.cc @@ -245,7 +245,7 @@ int Ipv6RawSocketImpl::SendTo (Ptr p, uint32_t flags, const Address& toA hdr.SetDestinationAddress (dst); SocketErrno err = ERROR_NOTERROR; Ptr route = 0; - Ptr oif (0); /*specify non-zero if bound to a source address */ + Ptr oif = m_boundnetdevice; //specify non-zero if bound to a specific device if (!m_src.IsAny ()) {