Opened 14 years ago
Closed 10 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 , 14 years ago
comment:2 by , 14 years ago
That's fine with me as well :) As long as it's nicer than the current ioctl() based approach.
comment:4 by , 10 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Implemented in hrev48684, using the BNetworkInterface and BNetworkAddress classes as a backend. I guess these cover the 'real Haiku API' case already.
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.