Opened 14 years ago

Closed 9 years ago

#6279 closed enhancement (fixed)

Implement getifaddrs()

Reported by: anevilyak Owned by: axeld
Priority: low Milestone: R1
Component: Kits/Network Kit Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

It would be nice if Haiku implemented this call. It's not officially part of POSIX but both Linux and the BSDs implement it. To go with it, ideally it'd probably be nice to have higher level network kit classes to encapsulate that functionality, so for instance the network preflet could also make use of that instead of relying on ioctl().

Change History (4)

comment:1 by axeld, 14 years ago

Its semantics isn't that clear, and besides that, Linux and BSD implement it a bit differently.

Since the use of this function would be very limited, I would actually prefer a real Haiku API for this.

comment:2 by anevilyak, 14 years ago

That's fine with me as well :) As long as it's nicer than the current ioctl() based approach.

comment:3 by michaelvoliveira, 13 years ago

MegaGlest game use it... :(

comment:4 by pulkomandy, 9 years ago

Resolution: fixed
Status: newclosed

Implemented in hrev48684, using the BNetworkInterface and BNetworkAddress classes as a backend. I guess these cover the 'real Haiku API' case already.

Note: See TracTickets for help on using tickets.