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

Re: Snoop



Your message dated: Thu, 07 May 1998 20:46:02 +0200
> I tried to run the snoop from the distribution of ns-2.1b2 but it
> dosen't work. This is the result of one attempt:
> [...]
> I also tried the other variants that should work according to the
> comments in snoop.tcl  
> 
> 
> What could be wrong?

Make sure that create-error() in ns-lan.tcl calls install-error() in the
right way, i.e., the errormodel has to be passed as *first* parameter.

By this change, the error message will disappear, but the snoop module
won't work, since it's wrongly connected. To fix this, you have to
replace the else part from the if-stmt in install-error() by
                set macSA [[$netIface_($src) set mac_] set addr_]
                $netIface_($dst) install-error $em $macSA

- Urs