[Ns-bugs] [Bug 783] New: feature request: add API to application helpers to expose Socket::BindToNetDevice

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Sun Jan 3 21:40:13 PST 2010


http://www.nsnam.org/bugzilla/show_bug.cgi?id=783

           Summary: feature request:  add API to application helpers to
                    expose Socket::BindToNetDevice
           Product: ns-3
           Version: pre-release
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: routing
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: tomh at tomh.org
                CC: zarhan at cc.hut.fi
   Estimated Hours: 0.0


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).

-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list