All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Aring <alex.aring@gmail.com>
To: Baptiste Clenet <bapclenet@gmail.com>
Cc: linux-wpan@vger.kernel.org
Subject: Re: What is SAM value? "ieee802154 phy0 wpan0: SAM value 0x3 not supported"
Date: Fri, 24 Jul 2015 14:13:35 +0200	[thread overview]
Message-ID: <20150724121331.GA7623@omega> (raw)
In-Reply-To: <CAPpUg6P5SfTPVui=1SzLAk55O63ahH0bH8NHJ68WXPEzfwB=mg@mail.gmail.com>

On Fri, Jul 24, 2015 at 02:03:09PM +0200, Baptiste Clenet wrote:
> 2015-07-24 12:18 GMT+02:00 Alexander Aring <alex.aring@gmail.com>:
> > On Fri, Jul 24, 2015 at 11:56:08AM +0200, Baptiste Clenet wrote:
> >> 2015-07-24 11:48 GMT+02:00 Alexander Aring <alex.aring@gmail.com>:
> >> > On Fri, Jul 24, 2015 at 11:02:30AM +0200, Baptiste Clenet wrote:
> >> >> 2015-07-24 10:47 GMT+02:00 Baptiste Clenet <bapclenet@gmail.com>:
> >> >> > 2015-07-24 10:31 GMT+02:00 Alexander Aring <alex.aring@gmail.com>:
> >> >> >> Hi,
> >> >> >>
> >> >> >> On Fri, Jul 24, 2015 at 09:56:49AM +0200, Baptiste Clenet wrote:
> >> >> >>> Hi,
> >> >> >>>
> >> >> >>> What is SAM value? I got "ieee802154 phy0 wpan0: SAM value 0x3 not
> >> >> >>> supported" when I receive a ping from another board.
> >> >> >>>
> >> >> >>
> >> >> >> I think you hit [0]. You got that because we received some 6LoWPAN frame
> >> >> >> with context based address compression (the source address). See also [1].
> >> >> > Yes for [0]
> >> >> >
> >> >> >>
> >> >> >> Your options are:
> >> >> >>
> >> >> >>  - That the other board use stateless (means SAC = 0, see [1]) address
> >> >> >>    compression.
> >> >> > How may I check?
> >> >> > They use both the same settings, they are based on the same source code.
> >> >> SAC bit is set.
> >> >
> >> > Yes SAC bit means context based address compression and we don't support
> >> > it. We should support it, that's what rfc6282 said. But we don't have
> >> > support for that now. :-)
> >> >
> >> > What do you mean with "they are based on the same source code"? It's a
> >> > linux<->linux communication?
> >> Yes it is linux to linux transmission.
> >> Yeah I understand for the support :-)
> >> The question is now why my linux use context based address compression
> >> if it shouldn't? Where is it (SAC) set when transmitting a message?
> >>
> >
> > We don't set it. Which kernel do you use?
> Linux 4.1.0 (yeah I should use bluetooth-next kernel)
> I see that the only way it is set is when
> 'source address is unspecified, setting SAC'
> 

yes, apologize it wasn't correct. But the SAM value was 0x3 in your case
and this shouldn't be.

The SAC = 1 and SAM = 0 is a very simple case [0]. It's simple do
nothing.

> root@OpenWrt:/# ifconfig
> lowpan0   Link encap:UNSPEC  HWaddr
> 07-7B-21-44-65-D9-6F-AC-00-00-00-00-00-00-00-00
>           inet6 addr: fe80::57b:2144:65d9:6fac/64 Scope:Link
>           UP BROADCAST RUNNING MULTICAST  MTU:1280  Metric:1
>           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
> 
> wpan0     Link encap:UNSPEC  HWaddr
> 07-7B-21-44-65-D9-6F-AC-00-00-00-00-00-00-00-00
>           UP BROADCAST RUNNING NOARP  MTU:127  Metric:1
>           RX packets:20 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:300
>           RX bytes:1001 (1001.0 B)  TX bytes:568 (568.0 B)
> 
> (There is some printk for irq as well)
> root@OpenWrt:/#ip link set lowpan0 up
> root@OpenWrt:/# [   66.248286] IPv6 header dump:
> [   66.248286]  version = 6
> [   66.248286]  length  = 36
> [   66.248286]  nexthdr = 0x00
> [   66.248286]  hop_lim = 1
> [   66.248286]  dest    = ff02::16
> [   66.281193] source address is unspecified, setting SAC
> // ??

Yes this is simple case at [0]. But then SAM should be 0 not 3. And in
some previous mail it was set 3 in your case.

We set the SAC bit once at [1] only, but then SAM should be 0. 

- Alex

[0] http://lxr.free-electrons.com/source/net/6lowpan/iphc.c#L148

  reply	other threads:[~2015-07-24 12:13 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-24  7:56 What is SAM value? "ieee802154 phy0 wpan0: SAM value 0x3 not supported" Baptiste Clenet
2015-07-24  8:31 ` Alexander Aring
2015-07-24  8:47   ` Baptiste Clenet
2015-07-24  9:02     ` Baptiste Clenet
2015-07-24  9:45       ` Baptiste Clenet
2015-07-24  9:53         ` Alexander Aring
2015-07-24  9:48       ` Alexander Aring
2015-07-24  9:56         ` Baptiste Clenet
2015-07-24 10:18           ` Alexander Aring
2015-07-24 12:03             ` Baptiste Clenet
2015-07-24 12:13               ` Alexander Aring [this message]
2015-07-24 12:53                 ` Baptiste Clenet
2015-07-24 13:07                   ` Alexander Aring
2015-07-24 14:45                     ` Baptiste Clenet
2015-07-24 14:51                       ` Stefan Schmidt
2015-07-24 15:14                         ` Baptiste Clenet
2015-07-24 16:24                           ` Stefan Schmidt
2015-07-26 21:03                             ` Baptiste Clenet
2015-07-27  8:03                           ` Baptiste Clenet
2015-07-27  8:06                             ` Baptiste Clenet
2015-07-27  8:32                             ` Alexander Aring
2015-07-27  8:58                               ` Baptiste Clenet
2015-07-27  9:05                                 ` Baptiste Clenet
2015-07-27  9:30                                   ` Alexander Aring
2015-07-27 10:08                                     ` Baptiste Clenet
2015-07-27 10:21                                       ` Alexander Aring
2015-07-27 10:31                                         ` Baptiste Clenet
2015-07-27 10:38                                           ` Alexander Aring
2015-07-27 10:52                                             ` Baptiste Clenet
2015-07-27 11:30                                               ` Alexander Aring
2015-07-27 12:29                                                 ` Baptiste Clenet
2015-07-27 12:42                                                   ` Alexander Aring
2015-07-27 12:45                                                     ` Baptiste Clenet
2015-07-27 15:13                                                       ` Baptiste Clenet
2015-07-27 15:55                                                         ` Baptiste Clenet
2015-07-27 16:35                                                           ` Alexander Aring
2015-07-27 17:28                                                           ` Alexander Aring
2015-07-27 17:43                                                             ` Baptiste Clenet
2015-07-27 19:10                                                               ` 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=20150724121331.GA7623@omega \
    --to=alex.aring@gmail.com \
    --cc=bapclenet@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.