Apparently, BONE's management ioctl's only work on datagram sockets...

This should be retested on R5 to make sure it'll still work there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21413 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-06-14 17:15:09 +00:00
parent c7cdb67a8a
commit 1504b0a77d

View File

@ -90,7 +90,7 @@ NetAddress::IsLocal() const
return false; return false;
} }
// create a socket and try to bind it to a port of this address // create a socket and try to bind it to a port of this address
int fd = socket(AF_INET, SOCK_STREAM, 0); int fd = socket(AF_INET, SOCK_DGRAM, 0);
if (fd < 0) if (fd < 0)
return false; return false;
#if defined(HAIKU_TARGET_PLATFORM_DANO) || defined(HAIKU_TARGET_PLATFORM_DANO) #if defined(HAIKU_TARGET_PLATFORM_DANO) || defined(HAIKU_TARGET_PLATFORM_DANO)