routing local traffic w/o using loopback interface
Bruce M. Simpson
bms at FreeBSD.org
Fri Aug 17 05:27:43 PDT 2007
rajneesh rana wrote:
> hello all,
> i am opening up two tap interfaces, both connected to bridge, assigning them
> IP addresses and want to open up tcp connection b/w them without using
> loopback interface, so i bind client socket to first tap using
> SO_BINDTODEVICE option and socket server listening on other tap device.
> The problem is that when i m calling connect, it is giving timeout error.
I am confused by your question because to the best of my knowledge the
SO_BINDTODEVICE socket option does not exist in FreeBSD.
> Is it possible two route traffic b/w two interfaces of same machine w/o
> using loopback interface and kernel hacking.
Yes, I use if_bridge for this on a daily basis.
More information about the freebsd-net