Skip to contentSkip to conversation

bnep should not depend on IPv6

DISCUSSION James Le Cuirot 2 participants 3 messages Mar 8, 2009 – Mar 9, 2009 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi,

I've been playing with networking in Bluez to some degree of success. I found that whenever a PANU client tried to connect to my NAP, the bnep0 interface would fail to come up. It would only start working after bringing it up manually. I checked out the log and found errors that said "Bad file descriptor(9)". I looked at the source and traced this back to network/connection.c where there are two calls to socket() with AF_INET6 given as an argument. I don't have IPv6 support included in my kernel so I changed these to AF_INET and everything started working. I'm don't know what the real fix for this is, probably some kind of ifdef construct, but I'm sure you'll know what to do.

Cheers,
James

#1 lore raw
Quoted 3 lines · On Sun, 8 Mar 2009 18:31:55 +0000 James Le Cuirot <[email protected]>…

I looked at the source and traced this
back to network/connection.c where there are two calls to socket() with AF_INET6 given as an argument.

Sorry, I actually meant network/common.c.

#2 lore raw

Hi James,

Quoted 8 lines · James Le Cuirot
Quoted 3 lines · On Sun, 8 Mar 2009 18:31:55 +0000 James Le Cuirot <[email protected]>…

I looked at the source and traced this
back to network/connection.c where there are two calls to socket() with AF_INET6 given as an argument.

Sorry, I actually meant network/common.c.

Good catch I will have a look at it.

Signature · 2 lines
Luiz Augusto von Dentz
Engenheiro de Computação