#9701: libnetapi: missing api for getting routing table / gateways --------------------------------+---------------------------- Reporter: jackburton | Owner: axeld Type: enhancement | Status: new Priority: normal | Milestone: Component: Kits/Network Kit | Version: R1/Development Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All --------------------------------+---------------------------- Comment (by jackburton): Replying to [comment:4 jackburton]: > Replying to [comment:3 phoudoin]: > > Okay, then what about: > > > > {{{ > > status_t BNetworkRoster::GetNextRoute(uint32& cookie, route_entry& route, > > const chat* interfaceName = NULL); > > }}} > > I'd be okay with that one. Anyone else objects ? Any other suggestion ? I can go with this one if it's okay. Although, now that I think about it, might be not that efficient to implement it that way. The network stack currently can only return the complete routing table. The GetNextRoute() semantics would involve either caching the whole routing table in the BNetworkRoster class, or getting the whole routing table at every GetNextRoute invocation, which is less that nice. -- Ticket URL: <http://dev.haiku-os.org/ticket/9701#comment:5> Haiku <http://dev.haiku-os.org> Haiku - the operating system.