On Wed, 2011-02-09 at 14:56 +0100, Axel Dörfler wrote: > Alexander von Gluck<kallisti5@xxxxxxxxxxx> wrote: > > 1) You can't seem to bring up virtual network cards: > > /Data/haiku/headers> ifconfig /dev/net/broadcom570x/0:0 up > > ifconfig: Setting flags failed: No such file or directory > > Sure, there is no support for virtual network cards whatsoever. This has > nothing to do with BNetworkInterface itself, though, this is what the network > stack is doing. Wierd.. Haiku lets you create one that works... http://pastebin.com/escXeQ8m > > 2) BNetworkInterface FindFirstAddress(AF_INET) and > > BNetworkInterface FindFirstAddress(AF_INET6) > > > > Both return the same index (0) on an interface without an IPv6 Address. > > (maybe a == vs === issue?) > > Use the code, Luke! The BNetwork* APIs are all relatively new, so they might > contain lots of bugs :-) > Most methods have been tested, but not all of them. If you like, you could > add tests for this like the one for BNetworkAddress. Lol, just checking if it was a known issue. I'll look within the BNetworkAddress sources to see if I can find the source of the problem. Also, I noticed that the Broadcast address is being calculated incorrectly by ifconfig... /dev/net/broadcom570x/0 Hardware type: Ethernet, Address: 00:15:60:c0:17:a5 Media type: 100 MBit, 100BASE-TX inet addr: 10.21.16.87, Bcast: 10.255.255.255, Mask: 255.255.254.0 MTU: 1500, Metric: 0, up broadcast link auto-configured Receive: 3176 packets, 0 errors, 315367 bytes, 0 mcasts, 0 dropped Transmit: 113 packets, 0 errors, 13595 bytes, 0 mcasts, 0 dropped Collisions: 0 -- Thanks! -Alexander von Gluck IV GPG/C32E7686