[Ns-bugs] [Bug 1041] BindToNetDevice does not exclude the layer 3 routing process
code@nsnam.ece.gatech.edu
code at nsnam.ece.gatech.edu
Sun Mar 20 11:16:47 PDT 2011
http://www.nsnam.org/bugzilla/show_bug.cgi?id=1041
Gustavo J. A. M. Carneiro <gjcarneiro at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gjcarneiro at gmail.com
--- Comment #1 from Gustavo J. A. M. Carneiro <gjcarneiro at gmail.com> 2011-03-20 14:16:47 EDT ---
>From [1], I see:
"""SO_BINDTODEVICE forces packets on the socket to only egress the bound
interface, regardless of what the IP routing table would normally choose.
Similarly only packets which ingress the bound interface will be received on
the socket, packets from other interfaces will not be delivered to the
socket."""
So, basically SO_BINDTODEVICE has effect for both sending and receiving packets
through a socket. However, at the time when I implemented the functionality I
thought that it was supposed to have effect only on the receiving part, not the
sending. So basically my SO_BINDTODEVICE implementation is incomplete.
I won't comment on the patch itself for now. I find it really hard to read
patches not in "unified" format. Maybe Tom will have better luck reading it...
[1] http://codingrelic.geekhold.com/2009/10/code-snippet-sobindtodevice.html
--
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