logo       

Re: CLASS OF DEVICE AND L2CAP INCOMING CONNECTION REQUESTS: msg#00191

Subject: Re: CLASS OF DEVICE AND L2CAP INCOMING CONNECTION REQUESTS
Le Mercredi 29 Octobre 2003 15:33, Marcel Holtmann a écrit :
> > 2/  and/or  make a filter to allow l2cap incoming connections requests
> > only from devices that have a specific class of device .
>
> I don't have any real thought about this. Any comments from other
> people?

This can be achieved at hci level by sending a Set_Event_Filter command (OGF = 
3, OCF =5) with filter type set to 2, Filter_condition_type to 1 and the 
condition, composed of the CoD that interrests you followed by a mask 
indicating the bits of interrest in the preceding CoD.

The problem is i'm sure you need to be root to do that and it forbids hci 
connections ...

Regards,
-- 
Xavier Garreau
http://www.xgarreau.org



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/


<Prev in Thread] Current Thread [Next in Thread>