Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(906)

Unified Diff: src/node/node.cc

Issue 82059: support recvifindex in socket for ns-3-simu
Patch Set: Created 14 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/node/socket.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/node/node.cc
===================================================================
--- a/src/node/node.cc
+++ b/src/node/node.cc
@@ -28,6 +28,7 @@
#include "ns3/uinteger.h"
#include "ns3/log.h"
#include "ns3/assert.h"
+#include "ns3/socket.h"
NS_LOG_COMPONENT_DEFINE ("Node");
@@ -247,6 +248,10 @@
<< ") Packet UID " << packet->GetUid ());
bool found = false;
+ SocketRecvIfTag tag;
+ tag.SetRecvIf (device->GetIfIndex());
+ packet->AddTag (tag);
+
for (ProtocolHandlerList::iterator i = m_handlers.begin ();
i != m_handlers.end (); i++)
{
« no previous file with comments | « no previous file | src/node/socket.h » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b