From: Jeff D. <jd...@ad...> - 2006-08-03 18:26:33
|
On Thu, Aug 03, 2006 at 09:29:51AM -0700, Stephens, Allan wrote: > These differences may make sense to people who understand how the > various transport mechanisms work, but it still leave me with a > question: why, in the latter two cases, is UML allowing non-promiscuous > interfaces to receive traffic that wasn't sent to them? I can > understand that configuring uml_switch as a hub means that packets may > be forwarded to places they don't need to go, but shouldn't these > packets still be filtered out somewhere further down the line? As I > naive user, I'm not expecting a (simulated) interface to receive traffic > that wasn't addressed to it unless it has been explicitly configured as > promiscuous. Either you or I have a very basic misunderstanding of how these things are supposed to work. You seem to be thinking that when you set an interface promiscuous, it somehow reaches out to the switch and tells it to start sending it everything, and when it is set non-promiscuous, it tells the switch to only send stuff addressed to it. I seem to be thinking that the packets that actually reach the interface is not controlled by its promiscuous setting, and the setting controls whether the packets reach the network stack and are visible to software. Needless to say, I think my thinking is closer to the truth. There is no mechanism that I know of for an interface to communicate its promiscuous setting to a switch. Switches do remember the MAC associated with a port, but that is done by sniffing the packets going by. Jeff |