linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface
@ 2015-06-18  8:56 paras kumar
  2015-06-18  9:08 ` Alexander Aring
  0 siblings, 1 reply; 5+ messages in thread
From: paras kumar @ 2015-06-18  8:56 UTC (permalink / raw)
  To: jukka.rissanen, marcel, johan.hedberg, linux-bluetooth

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface
  2015-06-18  8:56 Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface paras kumar
@ 2015-06-18  9:08 ` Alexander Aring
  2015-06-23  7:00   ` paras kumar
  2015-06-26  4:58   ` paras kumar
  0 siblings, 2 replies; 5+ messages in thread
From: Alexander Aring @ 2015-06-18  9:08 UTC (permalink / raw)
  To: paras kumar; +Cc: jukka.rissanen, marcel, johan.hedberg, linux-bluetooth

Hi,

On Thu, Jun 18, 2015 at 02:26:40PM +0530, paras kumar wrote:
> 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?
>

Maybe you missing [0].

- Alex

[0] http://lxr.free-electrons.com/source/net/ipv6/addrconf.c#L1912

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface
  2015-06-18  9:08 ` Alexander Aring
@ 2015-06-23  7:00   ` paras kumar
  2015-06-26  4:58   ` paras kumar
  1 sibling, 0 replies; 5+ messages in thread
From: paras kumar @ 2015-06-23  7:00 UTC (permalink / raw)
  To: 'Alexander Aring'
  Cc: jukka.rissanen, marcel, johan.hedberg, linux-bluetooth

Hi Alexander,

Thanks for the code modification you suggested [0].

After adding the case "ARPHRD_6LOWPAN" to generate IPv6 address for BT interface; kernel gets panicked.
May be this panic is because I am using below setup.

1. Linux kernel version 3.10.
2. For 6LoWPAN:  Just copied [net/6lowpan/.. and net/Bluetooth/.. code from 4.0.2 kernel]
Rest all other modules are older only (kernel 3.10) including IPV6 module.

As I cannot upgrade whole kernel  due to official reasons,
please suggest which other dependent modules I need to upgrade mandatorily to get the 6LoWPAN working for Bluetooth properly.
Or
Above setup is sufficient to work for Bluetooth 6lowpan? 

Please let me know your suggestions.
 
Thanking you,
Paras

[0] http://lxr.free-electrons.com/source/net/ipv6/addrconf.c#L1912


-----Original Message-----
From: Alexander Aring [mailto:alex.aring@gmail.com] 
Sent: Thursday, June 18, 2015 2:39 PM
To: paras kumar
Cc: 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

Hi,

On Thu, Jun 18, 2015 at 02:26:40PM +0530, paras kumar wrote:
> 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?
>

Maybe you missing [0].

- Alex

[0] http://lxr.free-electrons.com/source/net/ipv6/addrconf.c#L1912

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in

^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface
  2015-06-18  9:08 ` Alexander Aring
  2015-06-23  7:00   ` paras kumar
@ 2015-06-26  4:58   ` paras kumar
  2015-06-26  7:53     ` Alexander Aring
  1 sibling, 1 reply; 5+ messages in thread
From: paras kumar @ 2015-06-26  4:58 UTC (permalink / raw)
  To: 'Alexander Aring', jukka.rissanen, marcel, johan.hedberg,
	linux-bluetooth

Hello All,

Please help me to understand below queries.

Thanks & Regards,
Paras


-----Original Message-----
From: paras kumar [mailto:paras.kumar@samsung.com]=20
Sent: Tuesday, June 23, 2015 12:30 PM
To: 'Alexander Aring'
Cc: '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

Hi Alexander,

Thanks for the code modification you suggested [0].

After adding the case "ARPHRD_6LOWPAN" to generate IPv6 address for BT =
interface in IPv6 module (addrconf.c file); kernel gets panicked.
May be this panic is because I am using below setup.

1. Linux kernel version 3.10.
2. For 6LoWPAN:  Just copied [net/6lowpan/.. and net/Bluetooth/.. code =
from 4.0.2 kernel] Rest all other modules are older only (kernel 3.10) =
including IPV6 module.

As I cannot upgrade whole kernel  due to official reasons, please =
suggest which other dependent modules I need to upgrade mandatorily to =
get the 6LoWPAN working for Bluetooth properly.
Or
Above setup is sufficient to work for Bluetooth 6lowpan?=20

Please let me know your suggestions.
=20
Thanking you,
Paras

[0] http://lxr.free-electrons.com/source/net/ipv6/addrconf.c#L1912


-----Original Message-----
From: Alexander Aring [mailto:alex.aring@gmail.com]
Sent: Thursday, June 18, 2015 2:39 PM
To: paras kumar
Cc: 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

Hi,

On Thu, Jun 18, 2015 at 02:26:40PM +0530, paras kumar wrote:
> Thanks Jukka for your response,
>=20
> I could see link -local address is configured for other interfaces=20
> 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/..=20
> changes from linux kernel version 4.0.2 as below to enable bt 6lowpan.
>=20
> 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.
>=20
> Please tell me if any system environment or module dependencies are =
there?
>

Maybe you missing [0].

- Alex

[0] http://lxr.free-electrons.com/source/net/ipv6/addrconf.c#L1912

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface
  2015-06-26  4:58   ` paras kumar
@ 2015-06-26  7:53     ` Alexander Aring
  0 siblings, 0 replies; 5+ messages in thread
From: Alexander Aring @ 2015-06-26  7:53 UTC (permalink / raw)
  To: paras kumar; +Cc: jukka.rissanen, marcel, johan.hedberg, linux-bluetooth

Hi,

On Fri, Jun 26, 2015 at 10:28:10AM +0530, paras kumar wrote:
> Hello All,
> 
> Please help me to understand below queries.
> 

sorry, I don't help you to making backports. I am currently busy with
other things which are related to mainline work. I can't help you.

The missing ARPHRF_6LOWPAN in addrconf was just a shoot into the dark,
because you don't have the stateless autoconfiguration and this needed to
be there for that. I really have no idea about the following panic and
why it occurs, maybe providing the stacktrace would be nice that I have
more information. But I think it's more work than just copying the files
to kernel version 3.10.

I also don't know if somebody did a backport to earlier kernel versions.
Otherwise I would mentioned that here, but you are the first one.

- Alex

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-26  7:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-18  8:56 Re: Query regarding IPv6 address configuration for BT 6lowpan device/interface paras kumar
2015-06-18  9:08 ` Alexander Aring
2015-06-23  7:00   ` paras kumar
2015-06-26  4:58   ` paras kumar
2015-06-26  7:53     ` Alexander Aring

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).