Skip to contentSkip to conversation

PAND Network

Bluez-users Delgado, Monica (ERZIA) 1 participant 1 message Oct 20, 2006 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

Hi Marcel,

Quoted 19 lines
Quoted 7 lines

I have tried to find where the error "file exists" arises debugging the source code, and I have found it in this function of bnep.c when trying to
send the ioctl command "bnepconnadd":

static int bnep_connadd(int sk, uint16_t role, char *dev)

Quoted 11 lines
{
	struct bnep_connadd_req req;

	strcpy(req.device, dev);
	req.sock = sk;
	req.role = role;
	if (ioctl(ctl, bnepconnadd, &req))
		return -1;
	strcpy(dev, req.device);
	return 0;
} 
Quoted 2 lines

please check the getsockname() and getpeername() output for sk in that call.

I have checked the local address and the remote address of the socket "sk"
in the bnep_connadd function with getsockname() and getpeername() and they are correct in both bnep connections. The local address is in the first connection is 00:10:60:B3:5A:C9 and 00:07:80:80:4B:04 in the second one, and the remote address is in both connections 00:80:5A:20:EA:13.

Regards,

Monica

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users