Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] rejecting or accepting connection request
Date: Tue, 05 Apr 2005 18:49:05 +0200	[thread overview]
Message-ID: <1112719745.12406.74.camel@notepaq> (raw)
In-Reply-To: <11D888B5FA88D9409851B71E8D3206D1016624@doar.commil.com>

Hi Tzahi,

> I'm trying to build an application which accepts or rejects incoming
> connections according to the requesting device's bd_Addr. My
> application compares the requesting device's bd_Addr to a list and if
> the address is in the list, the application accepts the request.
> Otherwise, it rejects it.
> I have set the event filter to EVT_CONN_REQEUST (and
>  EVT_CONN_COMPLETE and EVT_DISCONN_COMPLETE) and I'm using select()
> followed by read() to get the events. My problem is that for every
> EVT_CONN_REQ I receive, the hci interface automatically accepts it.
> I've tried to set the link_mode with different values using the
> hciconfigure but it didn't help.
>  
> It seems that the only way I can make this bd_addr filtering is by
> disconnecting the connections with un-listed bd_addreses. Am I right?
> any ideas?

what you are talking about will be handled by an in-kernel policy
manager, but actually this code is far away from being finished at the
moment. And you must do this inside the kernel, because it is not the
job of the userspace to handle HCI connections.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

  reply	other threads:[~2005-04-05 16:49 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-05 17:35 [Bluez-devel] rejecting or accepting connection request Tzahi Efrati
2005-04-05 16:49 ` Marcel Holtmann [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-04-06 18:00 Tzahi Efrati
2005-04-07 10:32 ` Marcel Holtmann
2005-04-07 16:29 Tzahi Efrati
2005-04-07 15:48 ` Marcel Holtmann
2005-04-07 16:56 Tzahi Efrati
2005-04-07 16:41 ` Marcel Holtmann

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=1112719745.12406.74.camel@notepaq \
    --to=marcel@holtmann.org \
    --cc=bluez-devel@lists.sourceforge.net \
    /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