[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #53273] IPv6 link-local address generation for non-eth
From: |
hongchengyan |
Subject: |
[lwip-devel] [bug #53273] IPv6 link-local address generation for non-ethernet type netif does not convert byte order |
Date: |
Sat, 3 Mar 2018 23:39:03 -0500 (EST) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 |
Follow-up Comment #2, bug #53273 (project lwip):
For example, I use slipif and set the hardware address 48 bits which is same
as ethernet mac.
When the hardware address of slipif is 0x123456789abc, the orginal code will
generate the link local address as
fe80:0000:0000:0000 : 3412:0000:bc9a:7856
However, the expected output, as the comment "Use hwaddr directly as interface
ID" says, should be
fe80:0000:0000:0000 : 0000:1234:5678:9abc
Apparently, this is caused by endianness, since I am using an platform which
is little endian.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?53273>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/