[Ns-developers] promiscuous mode (was: ns-3.5 planning / mac multicast)

Tom Henderson tomh at tomh.org
Fri Apr 24 12:35:03 PDT 2009


Fabian Mauchle wrote:
> 
> If I want to make use of promiscuous mode for further processing on a node,
> or more generally, test the behavior of a L3 protocol if the NetDevices are
> promiscuous (eg. Simulating a tracing application running on a node to test
> sniffer detection methods) I got 2 problems:
> 1. The Ipv4L3Protocol will register itself as a protocol (non promiscuous),
> so I'm not able to activate promiscuous mode for IP.

This seems changeable by passing a boolean true argument to
RegisterProtocolHandler () in Ipv4L3Protocol::AddInterface().  This
variant could be exposed as an Ipv4 attribute in the future, if needed.

Would this work for you?

> 2. The RegisterProtocolHandler(..., promiscuous = true) requires that a
> NetDevice supports 'send from'. This ability orthogonal to promiscuous mode
> receive (but both are required for bridges).

I agree that this SendsFrom() checking should be removed from this
function.

Tom



More information about the Ns-developers mailing list