Bug 783

Summary: feature request: add API to application helpers to expose Socket::BindToNetDevice
Product: ns-3 Reporter: Tom Henderson <tomh>
Component: routingAssignee: ns-bugs <ns-bugs>
Status: NEW ---    
Severity: normal CC: antti.makela
Priority: P5    
Version: pre-release   
Hardware: All   
OS: All   

Description Tom Henderson 2010-01-04 00:40:12 EST
One of the open issues when bug 742 closed was to add API to PacketSinkHelper to allow a user to bind to a device.  This need is probably not limited to PacketSinkHelper.

This ns-3-users thread also raises the issue:
http://groups.google.com/group/ns-3-users/browse_thread/thread/62e922adfdcfe3aa

Probably this can be dealt with by adding an pointer or integer attribute similar to the way the address ("Local") is supported:

    .AddAttribute ("Local", "The Address on which to Bind the rx socket.",
                   AddressValue (),
                   MakeAddressAccessor (&PacketSink::m_local),
                   MakeAddressChecker ())

and to extend the PacketSinkHelper constructor or add another method there.  It would probably also help to add support to the helper to get a handle to the packet sinks that are created (right now, the helper is oriented towards creating a bunch of packet sink objects but returning an application container).