I am having problems with raw sockets on a 6lowpan 802.15.4 interface.
The code works correctly on an ethernet ipv6 interface but not on a
6lowpan interface. In the 6lowpan interface I receive packets but I find
the src and dest addresses are incorrect.
I open the socket like this:
socket(AF_INET6, SOCK_RAW, IPPROTO_ICMPV6);
Add options for IPV6_RECVPKTINFO, IPV6_CHECKSUM, IPV6_RECVHOPLIMIT.
I then receive a packet using recvmsg and attempt to get the source
address. The source address is rubbish. Also trying to get the
destination address from IPV6_PKTINFO using CMSG_FIRSTHDR results in
rubbish.
Can anyone explain why? Is there something different I have to do when
using 802.15.4 and 6lowpan?
Regards
Simon
--
To unsubscribe from this list: send the line "unsubscribe linux-wpan" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html