Bug report fromdevice.cc

Brecht Vermeulen brecht.vermeulen at rug.ac.be
Tue Mar 5 10:09:06 EST 2002


Hi,

I think there is a small typo in the linuxmodule/fromdevice.cc element.

cpBool, "enter promiscuous mode?", &_promisc,
...				  ^^^^
"PROMISC", cpBool, "enter promiscuous mode?", &promisc,
"PROMISCUOUS", cpBool, "enter promiscuous mode?", &promisc,
...
if (promisc)
  
set_flag(F_PROMISC);                                                    


first time promisc is specified as _promisc.

promisc is declared in fromdevice.cc while _promisc is declared in
fromdevice.hh.

This can explain why
FromDevice(eth1, PROMISC 1);
puts the interface in promiscuous mode and 
FromDevice(eth1, 1);
not.

(although ifconfig doesn't report that the interface is in promiscuous
mode, but it is)

best regards,
Brecht




More information about the click mailing list