linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: paras kumar <paras.kumar@samsung.com>
To: jukka.rissanen@linux.intel.com, marcel@holtmann.org,
	johan.hedberg@gmail.com, linux-bluetooth@vger.kernel.org
Subject: Re: Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface
Date: Thu, 18 Jun 2015 14:26:40 +0530	[thread overview]
Message-ID: <037401d0a9a4$b5f9c4c0$21ed4e40$@samsung.com> (raw)

Thanks Jukka for your response,

I could see link -local address is configured for other interfaces like
wlan0, but not getting configured for bt0 interface when it is UP.
I am using linux kernel version 3.10 and had merged net/6lowpan/.. changes
from linux kernel version 4.0.2 as below to enable bt 6lowpan.

I am able to make the BT interface UP after merging 6lowpan changes as
above. But not able to get the ipv6 address for the same.

Please tell me if any system environment or module dependencies are there?

Thanks for your help,
Paras


------- Original Message -------
Sender : Jukka Rissanen<jukka.rissanen@linux.intel.com>
Date : Jun 18, 2015 12:25 (GMT+05:30)
Title : Re: Query regarding IPv6 address configuration for BT 6lowpan
device/interface


Hi Paras,

On to, 2015-06-18 at 10:48 +0530, paras kumar wrote:
> Hi Marcel,
> 
> Could you please provide me answer of below query.
> 
> When BT 6Lowpan interface is UP after BLE & IPSP L2CAP connection (Say for
> example "bt0").
> I don't find interface is configured with inet6/IPv6 address which should
be
> configured during device initialization.
> 
> The snapshot is here:
> sh-4.1# ifconfig
> bt0: flags=4177  mtu 1280
>         unspec 00-02-FA-FF-FE-72-2D-17-00-00-00-00-00-00-00-00  txqueuelen
0
> (UNSPEC)
>         RX packets 0  bytes 0 (0.0 B)
>         RX errors 0  dropped 0  overruns 0  frame 0
>         TX packets 0  bytes 0 (0.0 B)
>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
> 
> My query is how IPv6 address is configured or generated for BT interface?
Or
> the process which should be followed to get IPv6 address configured ?
> 
> Please give me some pointer in kernel code also, where to check?
> 
> Thanks & regards,
> Paras
> 
> 

See net/bluetooth/6lowpan.c:chan_ready_cb(), it will setup the netdev
and take the interface up. This should then cause the interface to have
the IPv6 link local address properly setup by the kernel.


Cheers,
Jukka

             reply	other threads:[~2015-06-18  8:56 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-18  8:56 paras kumar [this message]
2015-06-18  9:08 ` Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface Alexander Aring
2015-06-23  7:00   ` paras kumar
2015-06-26  4:58   ` paras kumar
2015-06-26  7:53     ` 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='037401d0a9a4$b5f9c4c0$21ed4e40$@samsung.com' \
    --to=paras.kumar@samsung.com \
    --cc=johan.hedberg@gmail.com \
    --cc=jukka.rissanen@linux.intel.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=marcel@holtmann.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;
as well as URLs for NNTP newsgroup(s).