How could I excute it then?

On Thu, Sep 11, 2008 at 1:49 PM, funofnet Funofnet <[EMAIL PROTECTED]> wrote:

> But I think that it is  theoretically True (intercept.forward returns FALSE
> if a node snoop a packet).
> Because I tested that by adding a debug msg in the forwarding engine of the
> CTP protocol at this line:
>
> /********************************************************************/
>    // I'm on the routing path and Intercept indicates that I
>    // should not forward the packet.
>    else if (!signal Intercept.forward[collectid](msg,
>                          call Packet.getPayload(msg, call
> Packet.payloadLength(msg)),
>                          call Packet.payloadLength(msg)))
>    {dbg("Snoop", "snooped packet from%d\n", getHeader(msg)->origin);
>      return msg;}
> /********************************************************************/
> I didn't see any snooped packet message in my trace file.
>
> Did I make a mistake?
>

Intercept.forward returns TRUE by default so you are not executing the
branch in which you inserted that debug statement.

- om_p



      
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to