Re: Forcing a connection from a particular NIC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 26 Aug 2004 15:28:26 +0800, Xia Wei-Zhong-W20079
<xia@motorola.com> wrote:
> Hi , anupam
> 
> Can I ask a question about SO_BINDTODEVICE, since you mentioned it here.
> 
> (I can't recall where I find the information), it is said to use SO_BINDTODEVICE, you still need to have a route pointing to the device. SO_BINDTODEVICE only allow you to choose device among the different routing priorities.
> 
> Is it true for LINUX?
yes.

> 
> Also somebody said SO_BINDTODEVICE can't work with multicast, true?
i don't think SO_BINDTODEVICE will work with multicast. but i have not
tried it, so i am not sure.

regards
anupam
> 
> Thanks, Xia Weizhong
> 
> 
> 
> 
> -----Original Message-----
> From: linux-net-owner@vger.kernel.org [mailto:linux-net-owner@vger.kernel.org]On Behalf Of Anupam Kapoor
> Sent: 2004?8?26? 12:34
> To: Henrik Nordstrom
> Cc: rss26@njit.edu; linux-net@vger.kernel.org
> Subject: Re: Forcing a connection from a particular NIC
> 
> > You can in most cases accomplish this with a little LD_PRELOAD hackery, to
> > modify the socket calls to always bind() to the desired address when the
> > application tries to call connect().
> >
> how about limiting the packet through a specific interface via the
> SO_BINDTODEVICE socket
> option ? i guess that's what you (henrik) means. right ?
> 
> kind regards
> anupam
> -
> : send the line "unsubscribe linux-net" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux