Hello all, hello Jean,

   As I sad almost one month ago, I was frustated
with incomplete local IAS manipulation. Especially
duplicated objects with different IDs. 


1)
At home I implemented (easily, according with my C skills)
3 new sockopt LMP calls (from memory):
    IRLMP_IAS_GET_BY_ID  - working fine
    IRLMP_IAS_SET_BY_ID  - irda_class_name must be initialized, partially tested
    IRLMP_IAS_DEL_BY_ID  - yet not tested
 
 These will allow fully local IAS manipulation.

2)
To allow total operation on local IAS, without parsing 
/proc/net/irda/ias,
it's a need to list objects using getsockopt. I plan to introduce:
    IRLMP_IAS_GET_FIRST - get ID & struct for first object + pointer on next
    IRLMP_IAS_GET_NEXT  - get object according with what I set to irda_class_id  

3)
So, to implement what I said above, struct irda_ias_set must be "upgraded" with 
2 new members:
   __u16 irda_class_id; /* used on *_BY_ID *sockopt calls */
   __u16 next_id;   /* to support GET_FIRST and GET_NEXT */


Status:
   I added irda_class_id and work fine.


kind regards,
-- 
Claudiu Costin
<[EMAIL PROTECTED]>
_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to