Linux IEEE 802.15.4 and 6LoWPAN development
 help / color / mirror / Atom feed
From: anton@picapica.im
To: Alexander Aring <aring@mojatatu.com>
Cc: linux-wpan - ML <linux-wpan@vger.kernel.org>
Subject: Re: "encryption failed" warnings in dmesg
Date: Sun, 11 Mar 2018 13:37:45 +0100	[thread overview]
Message-ID: <20180311123745.GA11826@picapica.im> (raw)
In-Reply-To: <CAOHTApgcEvkckSgCQ_cen-4Q2CTMwuQy8WReeZs-M4Zj6PfPiQ@mail.gmail.com>

On Sat, Mar 10, 2018 at 11:49:44PM -0500, Alexander Aring wrote:
> Hi,
> 
> I need to correct some stuff.
> 
> On Sat, Mar 10, 2018 at 6:43 PM, Alexander Aring <aring@mojatatu.com> wrote:
> > Hi,
> >
> > On Sat, Mar 10, 2018 at 12:29 PM,  <anton@picapica.im> wrote:
> >> On Wed, Mar 07, 2018 at 10:43:09AM -0500, Alexander Aring wrote:
> >>
> >>>
> >>> You need to use monitor interfaces to make it somehow working but be prepared:
> >>>
> >>> 1. no hardware address filtering
> >>> 2. no hardware ack handling
> >>>
> >>> Have fun!
> >>>
> >>
> >> Thank you for detailed answer, can you give more info about why monitor interface is
> >> required?
> >>
> >
> > There exists two filter mechanism:
> >
> >  - Hardware (e.g. address filter, CRC, etc.)
> >  - Software (e.g. address filter, CRC, etc.)
> >
> > Of course we do it again in Software, because we don't trust hardware filters...
> 
> CRC is offloaded by hardware, address we do again, because we need to
> parse it anyway.
> 
> > Anyway advantage of hardware filters is only: you get less IRQs
> >
> > With monitor interfaces you disable hardware side and Software side as
> > well... (CRC on tx not, but this is another issue which we cannot
> > change directly..., because UAPI changes. Anyway we need to fix this
> > mess somehow).
> >
> > NOW... some feature which I have in my mind but doesn't exists yet...
> >
> > Disable Software filter and enable Hardware filters... Then using RAW sockets...
> > _IMPORTANT_ Then address settings of user space stacks e.g.
> > OpenThread, RIOT need to be in sync with Hardware (which is possible
> > by doing some netlink foo).
> >
> > Anyway this goes too far for me and is a use case for running user
> > space stacks only, which means: I don't like it, but I think we could
> > accept such feature... It's just node interface without monitor...
> >
> 
> s/monitor/promiscuous mode/
> 
> promiscuous mode according 802.15.4 -> disable all filtering
> 
> If we do that we need to disable AACK, but node without software
> filtering will still have AACK and address filter... but to make it
> work with user space stack -> you need to held them (addresses) in
> sync with 802.15.4 MAC layer.
> 
> - Alex

Ok, but why exactly hardware filtering cannot be used?
OpenThread sets it's own extended addr/short addr/pan_id,
so I tried some probably hacky way - when these settings
are changed by OpenThread, I delete interface and create
new one, with new extended addr, pan_id and short_addr,
using system() call and calling "iwpan" with appropriate args.
Then raw socket is reopened on a new interface.
Seems working so far, at least instances are able to see each
other, pair up and even occasionally ping each other from CLI.
Maybe more proper way is to set everything over netlingk,
but seems that extended addr cannot be changed on the fly anyway,
without bringing interface down



  reply	other threads:[~2018-03-11 12:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-07 13:35 "encryption failed" warnings in dmesg Anton Sviridenko
2018-03-07 15:43 ` Alexander Aring
2018-03-10 17:29   ` anton
2018-03-10 23:43     ` Alexander Aring
2018-03-11  4:49       ` Alexander Aring
2018-03-11 12:37         ` anton [this message]
2018-03-11 13:34           ` Alexander Aring
2018-03-11 17:30             ` anton
2018-03-12 15:27               ` Alexander Aring

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180311123745.GA11826@picapica.im \
    --to=anton@picapica.im \
    --cc=aring@mojatatu.com \
    --cc=linux-wpan@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox