First of all I am very thankful Dr Omprakash gnawali for your answer.
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?
Regards,
Funofnet
On Thu, Sep 4, 2008 at 7:23 AM, Funofnet funofnet <[EMAIL PROTECTED]> wrote:
> Hi all !
>
> I will be very thankful if someone explain to me intercept interface.
>
> As it is mentioned:
>
> The intercept interface signals that a message has been received, which is
> supposed to be forwarded to another destination.
>
> It returns TRUE if the packet should be forwarded, FALSE else.
>
> What I understood is : Intercept.forward returns FLASE if a node snoops a
> packet being transmitted.
Intercept.forward returns FALSE if a node snoops a packet and decides
that it should not forward the packet.
>
> To an additional clarification
>
> "A" sends a message to "B" (which can be a root or "A"'s parent)
>
> "C" is in the proximity of B or let's say in Tx range of the node A.
>
> "C" can probably hear the packet being transmitted by "A" and can also snoop
> it.
>
> "C" is not qualified to forward "A" msg, then its Intercept.forward returns
> FLASE consequently.
>
>
>
> It is true???????
>
Yes.
- om_p
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help