rdmenezes / remote-testbed

Automatically exported from code.google.com/p/remote-testbed
0 stars 1 forks source link

MAC addresses should be stored using strings rather than integers #9

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The use of integers for storing MAC addresses unnecessarily limits which
MAC addresses can be used. Motes used by CIT already requires that non-hex
values   should be supported. Instead of using a special converter for
changing between external and internal representation, simply using strings
will allow much more future-proof format. Furthermore, when looking at the
main users of the mote MAC addresses, nothing really speaks for using
uint64_t or similar: when programming motes strings are required, and the
same is the case for the client and log messages in MCI.

Original issue reported on code.google.com by jonas.fonseca on 5 Nov 2007 at 11:32

GoogleCodeExporter commented 9 years ago
MCS should be changed to only use the mote attribute tables for storing the 
mote MAC.

Original comment by jonas.fonseca on 5 Nov 2007 at 11:39

GoogleCodeExporter commented 9 years ago
Fixing the MCH side of this before making the protocol changes needed for issue 
3
will allow the protocol to also use strings when sending the MAC.

Original comment by jonas.fonseca on 6 Nov 2007 at 7:39

GoogleCodeExporter commented 9 years ago

Original comment by jonas.fonseca on 12 Nov 2007 at 10:42

GoogleCodeExporter commented 9 years ago
The fix has been pushed to my next branch as commit
04f2c9e6d2644e95a4eca3d67434f13cc1665cee and is currently being tested.

Original comment by jonas.fonseca on 15 Nov 2007 at 10:26

GoogleCodeExporter commented 9 years ago
Merged into remote-mci as of commit 2b4edd9b74d89491bf2c9e623e60fe7405b0a2fb

Original comment by jonas.fonseca on 16 Nov 2007 at 10:12