Bug 1040 - Olsr and multiple interfaces
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Sun, 20 Mar 2011 11:40:42 +0000
changeset 6917 b19cd9a1d6f6
parent 6916 a4b65880d753
child 6918 614b5388a1ae
Bug 1040 - Olsr and multiple interfaces
src/olsr/model/olsr-routing-protocol.cc
--- a/src/olsr/model/olsr-routing-protocol.cc	Sat Mar 19 16:54:00 2011 +0000
+++ b/src/olsr/model/olsr-routing-protocol.cc	Sun Mar 20 11:40:42 2011 +0000
@@ -327,6 +327,7 @@
         {
           NS_FATAL_ERROR ("Failed to bind() OLSR socket");
         }
+      socket->BindToNetDevice (m_ipv4->GetNetDevice (i));
       m_socketAddresses[socket] = m_ipv4->GetAddress (i, 0);
 
       canRunOlsr = true;