bind to a device?
Could you give me a code segment? I really don't know how to do it, thanks
From: Dheeraj Pandey [mailto:dheeraj@Zambeel.com]
Sent: Wednesday, November 20, 2002 3:14 PM
To: 'Yuan Huailin-w19410'; Glynn Clements
Subject: RE: DNS for multi-interfaces host
> Yes, I mean DNS server.
> This bring another question, When network application want to
> connect a host, how does it choice the interface?
You can make the socket bind to a device, in which case the outgoing pkt
will be routed with the device "hint". Otherwise, the Linux FIB (Forwarding
Information Base) will choose a route for you-- the outgoing interface is a
part of this route.
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to email@example.com
More majordomo info at http://vger.kernel.org/majordomo-info.html
This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:00 EST