Bug 778

Summary: OLSR ignores specified outgoing interface in RouteOutput()
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: routingAssignee: Gustavo J. A. M. Carneiro <gjcarneiro>
Status: RESOLVED FIXED    
Severity: normal CC: jpelkey, ns-bugs
Priority: P2    
Version: pre-release   
Hardware: All   
OS: All   
Attachments: patch enforcing the oif parameter

Description Tom Henderson 2009-12-15 23:50:06 EST
OLSR does not do anything with the oif parameter, which may be set by
Socket::BindToDevice().  This was changed from an interface index to a device
pointer, but OLSR has not been handling this parameter yet.

Ptr<Ipv4Route>
RoutingProtocol::RouteOutput (Ptr<Packet> p, const Ipv4Header &header,
    Ptr<NetDevice> oif, Socket::SocketErrno &sockerr)

It says:
  // TBD:  oif is unused; can be used to restrict the outgoing interface
  // of the found route if application bound to a source interface
Comment 1 Tom Henderson 2010-01-13 01:33:40 EST
Created attachment 721 [details]
patch enforcing the oif parameter
Comment 2 Gustavo J. A. M. Carneiro 2010-01-27 09:11:56 EST
Comment on attachment 721 [details]
patch enforcing the oif parameter

No comments on the patch.  Looks plausible, and you know the new routing API better them I, so...
Comment 3 Josh Pelkey 2010-01-31 15:50:52 EST
Gustavo, can you push this one?
Comment 4 Gustavo J. A. M. Carneiro 2010-02-03 10:18:31 EST
Committed.

changeset:   5946:4fef76630d66
tag:         tip
user:        Tom Henderson <tomh@tomh.org>
date:        Wed Feb 03 15:17:27 2010 +0000
summary:     Bug 778 - OLSR ignores specified outgoing interface in RouteOutput()