[Tinyos-help] interface id in 6lowpan

Kye-Myung Jung jgm2000 at ibitworld.com
Thu Apr 2 22:44:12 PDT 2009


I've got the 6lowpan open source in tinyos-2.x 
I have a question. 
When we make the interface id, it use the follows
 
void ipv6_iface_id_from_am_addr(am_addr_t am_addr, uint8_t *host_part)
{
    memset(host_part, 0, 6);
    host_part[4] = 0xFF;
    host_part[5] = 0xFE;
    host_part += 6;
    set_16t(host_part, htons(am_addr));
}
 
but I think 0xff, 0xfe are not host_part[4], host_part[5] but host_part[3],
host_part[4]
for example, 
 
pan id = 0x0022
short addr = 0x1234
 
Accorinding to RFC-4944, first we make 48 interface 
00-22-00-00-12-34
and univseral bit is 0, and we append (ff,fe) in the middle of interface id 
 
00-22-00-(ff-fe)-00-12-34
 
I think interface id is 0022:00ff:fe00:1234 
am I wrong?
If my thought isn't right, please tell me. 
 
the follows is my pc's mac-addr and link-local address
00-08-9F-FF-0F-B6
fe80::208:9fff:feff:fb6
 
I'll wait your response. 
Thank you in advance. 
 
-------------------------------------------
iBIT Technologies, Inc.
Research Engineer      Kye-Myung Jung
Tel : 82-31-478-0678  Fax : 82-31-478-0677
Mobile : 82-10-2736-8334
E-mail : jgm2000 at ibitworld.com
-------------------------------------------
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090403/9e8b3488/attachment-0001.htm 


More information about the Tinyos-help mailing list