RE: Forcing a connection from a particular NIC

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

 



Hi

In the previous message, I have asked "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.". So if I send a packet to 127.0.0.1, will it be routed to lo, even if I have previously binded the socket to eth0?

Xia Weizhong

-----Original Message-----
From: linux-net-owner@vger.kernel.org [mailto:linux-net-owner@vger.kernel.org]On Behalf Of Gilad Ben-Yossef
Sent: 2004?9?9? 21:39
To: Xia Wei-Zhong-W20079
Cc: 'Anupam Kapoor'; Henrik Nordstrom; rss26@njit.edu; linux-net@vger.kernel.org
Subject: Re: Forcing a connection from a particular NIC


Xia Wei-Zhong-W20079 wrote:


> When I bind a socket to eth0, I can not use this socket to talk with another application on my pc through loop back interface. 

You answered our own question: you've asked Linux to send all the 
packets fromthat sockets through eth0. the loopback device is a 
different interface (lo), so why do you expect to be able to talk 
another application that is listening to the loopback interface?

 > Does this mean LINUX do not use a standard implementation?

No, it means you need to figure out what you want :-)

Gilad


-- 
Gilad Ben-Yossef <gilad@codefidence.com>
Codefidence. A name you can trust(tm)
Web: http://codefidence.com  | SIP: gilad@pbx.codefidence.com
Tel: +972.9.8650475 ext. 201 | Fax:  +972.9.8850643

"I am Jack's Overwritten Stack Pointer"
	-- Hackers Club, the movie

-
: 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