Itai Nahshon <[EMAIL PROTECTED]> writes:

> Just to point to a (minor) bug implementation...
> 
> The optlen parameter is both input and output. Getsockopts
> should not copy out more than what the calling application
> has requested. Until fixed, applications calling getsockopts
> should just have a buffer that is large enough to contain the
> maximal reply size.

Thanks for pointing this out! I'll fix it! One other thing is that the
device list is declared as an array of lenght 0. That is an ANSI C
violation. I'll have to fix that as well. I'll try to make the IrDA socket
interface as close to the IrDA WinSock as possible (until I find a much
better way ;-)

-- Dag
 
> The hard coded limit of 10 discovered devices
> may also be a problem (for very rare cases?).

Yes, maybe 256 should be enough?

-- Dag

-- 
   / Dag Brattli                   | The Linux-IrDA Project               /
  // University of Tromsoe, Norway | Infrared communication for Linux    //
 /// http://www.cs.uit.no/~dagb    | http://www.cs.uit.no/linux-irda/   ///

_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to