All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jukka Rissanen <jukka.rissanen@linux.intel.com>
To: Alexander Aring <alex.aring@gmail.com>
Cc: Simon Vincent <simon.vincent@xsilon.com>,
	linux-wpan@vger.kernel.org, varkabhadram@gmail.com,
	marcel@holtmann.org
Subject: Re: [PATCH linux-wpan 0/3] Fix handling of skbs of type PACKET_OTHERHOST
Date: Thu, 02 Oct 2014 13:12:44 +0300	[thread overview]
Message-ID: <1412244764.13121.19.camel@jrissane-mobl.ger.corp.intel.com> (raw)
In-Reply-To: <20141002095841.GF3850@omega>

Hi Alex,

On to, 2014-10-02 at 11:58 +0200, Alexander Aring wrote:
> On Thu, Oct 02, 2014 at 11:54:30AM +0200, Alexander Aring wrote:
> > Jukka,
> > 
> > On Thu, Oct 02, 2014 at 12:43:05PM +0300, Jukka Rissanen wrote:
> > > Hi Simon,
> > > 
> > > On to, 2014-10-02 at 10:36 +0100, Simon Vincent wrote:
> > > > I will add this patch when I rebase on bluetooth-next.
> > > 
> > > and thanks for doing that.
> > > 
> > 
> > I see now, that the bluetooth layer never sets this value. I don't know
> > how bluetooth deal with that. But you need to set PACKET_HOST if packet
> > belongs to you, OTHERHOST if packets belongs not to you, or
> > PACKET_BROADCAST if packet belongs to you, but is a broadcast.
> > 
> > Also for PACKET_MULTICAST, if bluetooth support MULTICAST frames.
> > 
> > 
> > I think you need handling for this in bluetooth 6lowpan layer.
> > 
> 
> and this should be fixed before Simon's patches. I add Marcel here in
> cc, maybe he can bring some new information if bluetooth ever set's the
> pkt_type in sk_buff.
> 
> Point is IPv6 needs this information and we should set it to a valid value.
> ... and this is not always set PACKET_HOST, IPv6 also check on PACKET_BROADCAST.

Hmm, bluetooth 6lowpan is a bit different from ieee802154 as the
bluetooth link is a point-to-point one and typically only uses link
local addresses so normally every packet is really meant for that host.

I will investigate this a bit more, so perhaps it is best if Simon does
not change the pkt_type field after all. Everything seems to work just
fine with unicast and multicast packets at the moment (when pkt_type ==
PACKET_HOST).


Cheers,
Jukka



  reply	other threads:[~2014-10-02 10:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02  8:56 [PATCH linux-wpan 0/3] Fix handling of skbs of type PACKET_OTHERHOST Simon Vincent
2014-10-02  8:56 ` [PATCH linux-wpan 1/3] 6lowpan: Ensure pkt_type is not lost Simon Vincent
2014-10-02  9:16   ` Alexander Aring
2014-10-02  8:56 ` [PATCH linux-wpan 2/3] ieee802154: " Simon Vincent
2014-10-02  8:56 ` [PATCH linux-wpan 3/3] ieee802154: 6lowpan: Drop PACKET_OTHERHOST skbs in 6lowpan Simon Vincent
2014-10-02  9:29   ` Alexander Aring
2014-10-05 18:17   ` Alexander Aring
2014-10-02  9:15 ` [PATCH linux-wpan 0/3] Fix handling of skbs of type PACKET_OTHERHOST Alexander Aring
2014-10-02  9:28 ` Alexander Aring
2014-10-02  9:36   ` Simon Vincent
2014-10-02  9:43     ` Jukka Rissanen
2014-10-02  9:54       ` Alexander Aring
2014-10-02  9:58         ` Alexander Aring
2014-10-02 10:12           ` Jukka Rissanen [this message]
2014-10-02 10:22             ` Alexander Aring
2014-10-02 10:37               ` Alexander Aring
2014-10-02 10:39               ` Simon Vincent
2014-10-02 10:43                 ` Alexander Aring
2014-10-02 10:51             ` Alexander Aring
2014-10-02 10:58               ` 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=1412244764.13121.19.camel@jrissane-mobl.ger.corp.intel.com \
    --to=jukka.rissanen@linux.intel.com \
    --cc=alex.aring@gmail.com \
    --cc=linux-wpan@vger.kernel.org \
    --cc=marcel@holtmann.org \
    --cc=simon.vincent@xsilon.com \
    --cc=varkabhadram@gmail.com \
    /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.