llsec: command failed: Operation not supported (-95)
Running 802.15.4 and 6LoWPAN successfully on RPi using the OpenLabs module. Can ping, run UDP, TCP programs etc okay to another RPi. Tried to add llsec using wpan-tools from https://github.com/linux-wpan/wpan-t
ools/tree/nl802154_llsec, with instructions given by Stefan Schmidt at
http://events.linuxfoundation.org/sites/events/files/slides/openiot-201
6-linux-wpan_0.pdf
On running
./iwpan dev wpan0 set security 1
I get
command failed: Operation not supported (-95)
after executing
nl_recvmsgs(state->nl_sock, cb);
line 445, iwpan.c
I guess I'm missing something, not sure what.
$ ./iwpan wpan0 info
Interface wpan0
ifindex 3
wpan_dev 0x1
extended_addr 0x0200000000000001
short_addr 0xffff
pan_id 0xbeef
type node
max_frame_retries 3
min_be 3
max_be 5
max_csma_backoffs 4
lbt 0
ackreq_default 0$ uname -a Linux raspberrypi 4.7.2-v7+ #1 SMP Fri Aug 26 15:45:29 UTC 2016 armv7l GNU/Linux
$ lsmod Module Size Used by nhc_mobility 932 0 nhc_udp 2722 0 nhc_routing 930 0 nhc_fragment 932 0 ieee802154_6lowpan 19335 0 nhc_ipv6 924 0 nhc_hop 922 0 nhc_dest 924 0 6lowpan 13191 8 nhc_fragment,ieee802154_6lowpan,nhc_hop,nhc_udp,nhc_dest,nhc_ipv6,nhc_m obility,nhc_routing cfg80211 434103 0 rfkill 15784 1 cfg80211 at86rf230 22211 0 mac802154 49035 1 at86rf230 ieee802154 55698 2 ieee802154_6lowpan,mac802154 crc_ccitt 1278 1 mac802154
Thanks
Jan
--
Dr Jan Newmarch,
Director of Higher Education (Business & ICT) @ Box Hill, Adjunct Professor @ University of Canberra
[Mid Year 2017] <http://www.boxhill.edu.au/>
[Box Hill Institute]<http://www.boxhill.edu.au>
RTO No.4687
CRICOS Provider No. 02411J
Box Hill Institute
[Questions? Feedback? Ask Annie!]<http://www.boxhill.edu.au/contact-us/> [Connect with us on LinkedIn] <http://www.linkedin.com/edu/school?id=41868> [Watch our videos on YouTube] <http://www.youtube.com/user/BoxHillInstitute> [Follow us on Twitter] <https://twitter.com/BoxHillTAFE> [Become a fan on Facebook] <https://www.facebook.com/boxhilltafe> [View us on Instagram] <http://instagram.com/boxhillinstitute#> [Google+] <https://plus.google.com/106672838723135401391/posts>
Confidentiality and Privacy
This message is intended only for the use of the individual or entity named above and may contain information that is confidential and privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone and destroy the original message. Box Hill Institute is committed to protecting your privacy and the confidentiality and security of personal information provided by you to us. For further information visit www.boxhill.edu.au<http://www.boxhill.edu.au> or email [email protected]<mailto:[email protected]>.
Hi,
Quoted 32 lines · Jan Newmarch
Running 802.15.4 and 6LoWPAN successfully on RPi using the OpenLabs module. Can ping, run UDP, TCP programs etc okay to another RPi. Tried to add llsec using wpan-tools from https://github.com/linux-wpan/wpan-t
ools/tree/nl802154_llsec, with instructions given by Stefan Schmidt at
http://events.linuxfoundation.org/sites/events/files/slides/openiot-201
6-linux-wpan_0.pdfOn running
./iwpan dev wpan0 set security 1
I get
command failed: Operation not supported (-95)
after executing
nl_recvmsgs(state->nl_sock, cb);
line 445,iwpan.cI guess I'm missing something, not sure what.
$ ./iwpan wpan0 info Interface wpan0 ifindex 3 wpan_dev 0x1 extended_addr 0x0200000000000001 short_addr 0xffff pan_id 0xbeef type node max_frame_retries 3 min_be 3 max_be 5 max_csma_backoffs 4 lbt 0 ackreq_default 0
Quoted 4 lines
$ uname -a Linux raspberrypi 4.7.2-v7+ #1 SMP Fri Aug 26 15:45:29 UTC 2016 armv7l GNU/Linux
Don't know yet when I added support for it in the kernel - maybe use bluetooth-next? It's currently a experimental feature, you need to enable:
IEEE802154_NL802154_EXPERIMENTAL
---
Also there exists some cases on dumping where the kernel crashes (I have it on my list) It's because monitor interfaces doesn't has softmac layers and doesn't need that all security related stuff. Maybe you can send patches? It occurs when dumping values with iwpan.
Don't know how to send patches? There exists lot's of youtube tutorials from Greg Kroah Hartmann. :-)
- Alex
Duh - didn't realise I had to rebuld the kernel too! I moved to the 4.9 in the upstream RPi tree. I now set in .config
CONFIG_IEEE802154=m
CONFIG_IEEE802154_NL802154_EXPERIMENTAL=y
CONFIG_IEEE802154_SOCKET=m
CONFIG_IEEE802154_6LOWPAN=m
CONFIG_MAC802154=m
CONFIG_NET_SCHED=yBut still getting an error (different one now)
sudo ./iwpan dev wpan0 set security 1
command failed: Invalid argument (-22)
Am I still missing a config option?
Thanks
Jan
--
Dr Jan Newmarch,
Quoted 59 lines · Alexander Aring
Hi,
Quoted 37 lines · Jan Newmarch
Running 802.15.4 and 6LoWPAN successfully on RPi using the OpenLabs module. Can ping, run UDP, TCP programs etc okay to another RPi. Tried
to add llsec using wpan-tools from https://github.com/linux-wpan/wp
an-t
ools/tree/nl802154_llsec, with instructions given by Stefan Schmidt at
http://events.linuxfoundation.org/sites/events/files/slides/openiot
-201
6-linux-wpan_0.pdfOn running
./iwpan dev wpan0 set security 1
I get
command failed: Operation not supported (-95)
after executing
nl_recvmsgs(state->nl_sock, cb);
line 445,iwpan.cI guess I'm missing something, not sure what.
$ ./iwpan wpan0 info Interface wpan0 ifindex 3 wpan_dev 0x1 extended_addr 0x0200000000000001 short_addr 0xffff pan_id 0xbeef type node max_frame_retries 3 min_be 3 max_be 5 max_csma_backoffs 4 lbt 0 ackreq_default 0Quoted 5 lines
$ uname -a Linux raspberrypi 4.7.2-v7+ #1 SMP Fri Aug 26 15:45:29 UTC 2016 armv7l GNU/LinuxDon't know yet when I added support for it in the kernel - maybe use bluetooth-next?
It's currently a experimental feature, you need to enable:
IEEE802154_NL802154_EXPERIMENTAL---
Also there exists some cases on dumping where the kernel crashes (I have it on my list) It's because monitor interfaces doesn't has softmac
layers and doesn't need that all security related stuff. Maybe you can
send patches? It occurs when dumping values with iwpan.
Quoted 5 lines
Don't know how to send patches? There exists lot's of youtube tutorials
from Greg Kroah Hartmann. :-)- Alex
[Mid Year 2017] <http://www.boxhill.edu.au/>
[Box Hill Institute]<http://www.boxhill.edu.au>
RTO No.4687
CRICOS Provider No. 02411J
Box Hill Institute
[Questions? Feedback? Ask Annie!]<http://www.boxhill.edu.au/contact-us/> [Connect with us on LinkedIn] <http://www.linkedin.com/edu/school?id=41868> [Watch our videos on YouTube] <http://www.youtube.com/user/BoxHillInstitute> [Follow us on Twitter] <https://twitter.com/BoxHillTAFE> [Become a fan on Facebook] <https://www.facebook.com/boxhilltafe> [View us on Instagram] <http://instagram.com/boxhillinstitute#> [Google+] <https://plus.google.com/106672838723135401391/posts>
Confidentiality and Privacy
This message is intended only for the use of the individual or entity named above and may contain information that is confidential and privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone and destroy the original message. Box Hill Institute is committed to protecting your privacy and the confidentiality and security of personal information provided by you to us. For further information visit www.boxhill.edu.au<http://www.boxhill.edu.au> or email [email protected]<mailto:[email protected]>.
Hi,
Quoted 10 lines · Jan Newmarch
Duh - didn't realise I had to rebuld the kernel too! I moved to the 4.9 in the upstream RPi tree. I now set in .config
CONFIG_IEEE802154=m CONFIG_IEEE802154_NL802154_EXPERIMENTAL=y CONFIG_IEEE802154_SOCKET=m CONFIG_IEEE802154_6LOWPAN=m CONFIG_MAC802154=m CONFIG_NET_SCHED=y
Quoted 7 lines
But still getting an error (different one now)
sudo ./iwpan dev wpan0 set security 1
command failed: Invalid argument (-22)Am I still missing a config option?
no, it should work. Don't know why you get a -EINVAL do you set an outkey, etc. Check linux-wpan wiki [0].
- Alex
[0] https://github.com/linux-wpan/wpan-tools/wiki/Guide:-Contiki-%E2%86%94-Linux,-with-llsec