2008-04-30 19:38:37

by Valmantas Palikša

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

On Wed, 2008-04-30 at 22:36 +0300, Valmantas wrote:
> On Wed, 2008-04-30 at 15:37 -0300, Luiz Augusto von Dentz wrote:
> > What seems to be triggering the problem is that bnep_if_down is not
> > been called on disconnect than
> > the g_slist_find is causing the problem on bnep_if_up as it turn to
> > return without bringing up the
> > interface.
> >
> > Also please make sure you test this against cvs, so we avoid redoing
> > work already done.
> >
>
> How can i know when the connection has been broken?
>
> bnep_io() does not seem to get called on disconnect.
>
> Also i found another bug, NAP bridge does not get initialized.
>
>

I mean connect_setup_event() not bnep_io


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-04-30 19:36:23

by Valmantas Palikša

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

On Wed, 2008-04-30 at 15:37 -0300, Luiz Augusto von Dentz wrote:
> What seems to be triggering the problem is that bnep_if_down is not
> been called on disconnect than
> the g_slist_find is causing the problem on bnep_if_up as it turn to
> return without bringing up the
> interface.
>
> Also please make sure you test this against cvs, so we avoid redoing
> work already done.
>

How can i know when the connection has been broken?

bnep_io() does not seem to get called on disconnect.

Also i found another bug, NAP bridge does not get initialized.



-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-04-30 18:37:25

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

What seems to be triggering the problem is that bnep_if_down is not
been called on disconnect than
the g_slist_find is causing the problem on bnep_if_up as it turn to
return without bringing up the
interface.

Also please make sure you test this against cvs, so we avoid redoing
work already done.

-- =

Luiz Augusto von Dentz
Engenheiro de Computa=E7=E3o

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference =

Don't miss this year's exciting event. There's still time to save $100. =

Use priority code J8TL2D2. =

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java=
one
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-04-30 06:33:07

by Valmantas Palikša

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

On Wed, Apr 30, 2008 at 5:06 AM, Luiz Augusto von Dentz <
[email protected]> wrote:

> Hello,
>
> On Tue, Apr 29, 2008 at 5:42 PM, Valmantas <[email protected]> wrote:
> > After connecting to a server once, the relevent scripts in network.conf
> > are executed, and pan* and bnep* interfaces come up, but when you
> > disconnect and
> > reconnect the second time, neither the script gets executed, nor the
> > interface comes up and this makes the connection unusable. (You would
> > have to manually bring it up with "ifconfig bnep0 up" )
>
> The bridge on server side was already up I supposed, so it is pointless to
> execute the script again and again, but you may have found a bug on
> client side if what you are saying is that the bnep interface does not
> come up a second time.


Yes, bridges should come up only once and nope, not on the client side, the
server side, the bnepX in the bridge does not come up after the first
reconnect. Spent hours figuring out why there was no network with my PDA,
and ifconfig bnep0 up done the trick.

>
>
> > Correct behaviour:
> > Connection 1 ( server pan0 (GN) )
> > my-ifup gets executed with pan0 argument
> > my-ifup gets executed with bnep0 argument
> >
> > Disconnect / Connect 2 ( server pan0 (GN) )
> > my-ifup gets executed with bnep0 argument
> >
> > Disconnect / Connect 3 ( server pan0 (GN) )
> > my-ifup gets executed with bnep0 argument
> >
>
> No need to execute any script on bnepX at all, you seems to actually
> misunderstood the way it should goes, each bnepX interface always
> execute the PANU script on client side, on server it is the same if the
> role is PANU, GN and NAP uses bridges so the bnepX doesn't need any
> configuration besides bring them up, thats why there is a bnep_if_up(dev,
> 0)
> where 0 means do not execute any script as this interface will be added
> to a bridge.


There's a bonus, this way you can know when a client has connected and do
some stuff. To my knowledge this is the only way. Unless someone develops
dbus signals for this. Well, it's not THAT necessary, but fixing the bug i
mentioned above in this email is.


>
>
> ps: it really helps if you include what version are you testing and what
> network
> service is printing.


Sorry i forgot, it's bluez-utils 3.26 and i'll provide output later

>
>
>
> --
> Luiz Augusto von Dentz
> Engenheiro de Computação
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>


Attachments:
(No filename) (2.83 kB)
(No filename) (4.11 kB)
(No filename) (320.00 B)
(No filename) (164.00 B)
Download all attachments

2008-04-30 02:06:24

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

SGVsbG8sCgpPbiBUdWUsIEFwciAyOSwgMjAwOCBhdCA1OjQyIFBNLCBWYWxtYW50YXMgPHdhbG1p
c0BnbWFpbC5jb20+IHdyb3RlOgo+IEFmdGVyIGNvbm5lY3RpbmcgdG8gYSBzZXJ2ZXIg77u/b25j
ZSwgdGhlIHJlbGV2ZW50IHNjcmlwdHMgaW4gbmV0d29yay5jb25mCj4gIGFyZSBleGVjdXRlZCwg
YW5kIHBhbiogYW5kIGJuZXAqIGludGVyZmFjZXMgY29tZSB1cCwgYnV0IHdoZW4geW91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B0aGlzIHllYXIncyBleGNpdGluZyBldmVudC4gVGhlcmUncyBzdGlsbCB0aW1lIHRv
IHNhdmUgJDEwMC4gClVzZSBwcmlvcml0eSBjb2RlIEo4VEwyRDIuIApodHRwOi8vYWQuZG91Ymxl
Y2xpY2submV0L2NsazsxOTg3NTc2NzM7MTM1MDMwMzg7cD9odHRwOi8vamF2YS5zdW4uY29tL2ph
dmFvbmUKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KQmx1
ZXotZGV2ZWwgbWFpbGluZyBsaXN0CkJsdWV6LWRldmVsQGxpc3RzLnNvdXJjZWZvcmdlLm5ldApo
dHRwczovL2xpc3RzLnNvdXJjZWZvcmdlLm5ldC9saXN0cy9saXN0aW5mby9ibHVlei1kZXZlbAo=

2008-05-08 13:43:20

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

Hi,

Great, so at least GN is now working as expected, as I said before NAP
is more complicated even though we could return its bridge and leave
to user script to deal with dhcp server/NAT this code was in cvs
before but Marcel requested to remove it since we have no interface to
change any script configuration (ip range, routing interface...). But
you have a point saying it is not a big deal to leave NAP bridge for
user to create and configure and network service still announce it
without any verification, it might be better to return the bridge
creation to network service and when possible hook the bridge to
connman(http://www.moblin.org/projects/projects_connman.php) when it
comes to support access points.

-- =

Luiz Augusto von Dentz
Engenheiro de Computa=E7=E3o

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference =

Don't miss this year's exciting event. There's still time to save $100. =

Use priority code J8TL2D2. =

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java=
one
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel

2008-05-08 09:55:18

by Saurabh.Mukadam

[permalink] [raw]
Subject: [Bluez-devel] BlueZ API Documentation

I am new to this mailing list and trying to evaluate BlueZ for one of my
application requirement. I didnt find any updated BlueZ API Documentation,
If any one can help me



Thanks
Saurabh Mukadam,
-------------------------------------------------------------------------------------------

" The price of success is hard work, dedication to the job
at hand, and the determination that whether we win or
lose, we have applied the best of ourselves to the task
at hand."

Larsen & Toubro Infotech Ltd.
http://www.Lntinfotech.com

This Document is classified as:

L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech
Internal Use Only L&T Infotech General Business

This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do
not use or disseminate the information, notify the sender and delete it
from your system.

______________________________________________________________________


Attachments:
(No filename) (320.00 B)
(No filename) (164.00 B)
Download all attachments

2008-05-08 05:56:03

by Valmantas Palikša

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

Hi,

I've backported your patch to bluez-utils 3.26, works excellent as far as i
can tell. Thank you.

And, so, what's the verdict on the nap bridge?

On Wed, May 7, 2008 at 12:27 AM, Luiz Augusto von Dentz <
[email protected]> wrote:

> It should be fixed now in cvs, could you please test it.
>
> ps: I left NAP bridge out for instance.
>
>
> --
> Luiz Augusto von Dentz
> Engenheiro de Computação
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Bluez-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-devel
>


Attachments:
(No filename) (911.00 B)
(No filename) (1.48 kB)
(No filename) (320.00 B)
(No filename) (164.00 B)
Download all attachments

2008-05-06 22:27:16

by Luiz Augusto von Dentz

[permalink] [raw]
Subject: Re: [Bluez-devel] bluetoothd-service-network fails to execute ifup scripts from network.conf after repeated connection attempts (Patched)

It should be fixed now in cvs, could you please test it.

ps: I left NAP bridge out for instance.


-- =

Luiz Augusto von Dentz
Engenheiro de Computa=E7=E3o

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference =

Don't miss this year's exciting event. There's still time to save $100. =

Use priority code J8TL2D2. =

http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/java=
one
_______________________________________________
Bluez-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-devel