Opened 9 years ago

Closed 5 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:
Has a Patch: no 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 Changed 9 years ago by axeld

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 Changed 9 years ago by anevilyak

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

comment:3 Changed 8 years ago by michaelvoliveira

MegaGlest game use it... :(

comment:4 Changed 5 years ago by pulkomandy

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.