Subject: | Bug with address initialization |
Date: | Tue, 26 Jan 2010 23:42:07 +0100 |
To: | <bug-Net-Bluetooth [...] rt.cpan.org> |
From: | BenoƮt Peccatte <benoit.peccatte [...] telecom-bretagne.eu> |
Hi,
I'm using Net::Bluetooth 0.40 on debian sqeeze via the package
libnet-bluetooth-perl.
I have a problem with binding, I get an error "Invalid argment" when I
call bind on a bluetooth socket.
I dug and found that the problem come from the xs code that initialize the
L2CAP address (I'm using l2cap).
I replaced
struct sockaddr_l2 l2addr;
by
struct sockaddr_l2 l2addr = { 0 };
and now it works correctly.
Hope to be usful,
Benoit