On Aug 4, 2008, at 5:26 PM, John Hendrie wrote: > Thanks for the explanation. > > I have another question about sequence numbers. What happens when > the sequence number overflows? I can't see anything in the code that > deals with wrapping. Does Drip assume that the sequence number will > never wrap?
Yes, it does. You can only change a variable 65,535 times. If this is an issue, you can use 32-bit sequence numbers, at which point it will take 248 days (at 200 packets per second) to even increment across all 32 bits. But this would cost an extra 2 bytes/variable, and we thought 65,535 was sufficient for almost all reasonable cases. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
