haiku/headers/os/net
Michael Lotz 3b7b927dd0 libbnetapi: Add BNetworkRoute to replace use of route_entry.
The BNetworkRoute class manages a route_entry and the sockaddr's
associated with it. It replaces the direct use of route_entry in the
BNetworkInterface API.

Using route_entry is fragile and inconvenient as it only holds pointers
to the sockaddr's. When getting a list of routes from the kernel, each
route_entry is set up so that its pointers point into the single flat
buffer that is passed around. Creating a copy of the route_entry and
then deleting the flat buffer makes the pointers in the copy stale.
Returning these route entries therefore always lead to a use-after-free
when they were eventually used.

BNetworkRoute also takes over the code and functionallity of getting
routes from RouteSupport. The corresponding method in BNetworkRoster is
replaced by a static method in BNetworkRoute.

Also distinguish between the default route and gateway of an interface.
GetDefaultRoute() now gets the default BNetworkRoute for the interface
while GetDefaultGateway() gets the associated gateway address within
that default route. Adjust network preferences panel to this change.

Note that we currently only seem to have per interface default routes
and not an actual global default route. This was already the case before
these changes and I did not further investigate what this means.
2015-04-12 18:50:00 +02:00
..
AbstractSocket.h Added experimental version of a Socket API with SSL support. 2011-11-21 22:07:52 +01:00
Certificate.h Add more features in BCertificate class 2014-11-06 15:01:59 +01:00
DataRequest.h Reintroduce BUrlResult and add BDataRequest 2013-12-11 17:29:25 +01:00
DatagramSocket.h Use ssize_t to allow returning a negative error code 2013-10-04 16:57:02 +02:00
FileRequest.h Reintroduce BUrlResult and add BDataRequest 2013-12-11 17:29:25 +01:00
GopherRequest.h Fix gopher 2014-08-08 00:35:20 +02:00
HttpAuthentication.h Make handling of Http Authentication thread safe 2014-06-11 14:11:01 +02:00
HttpForm.h Style fixes to HttpForm 2013-11-04 20:16:05 -05:00
HttpHeaders.h HttpHeaders: Small code refactorings 2014-06-06 00:23:47 +02:00
HttpRequest.h BHttpRequest: propagate SSL errors to listener 2014-11-06 15:02:00 +01:00
HttpResult.h Reintroduce BUrlResult and add BDataRequest 2013-12-11 17:29:25 +01:00
NetAddress.h Overhauled BNetEndpoint implementation (and BNetAddress, too): 2008-07-13 19:58:35 +00:00
NetBuffer.h - Changed BNetBuffer to a simpler (and R5 compatible) implementation. 2009-01-17 21:28:10 +00:00
NetDebug.h
NetEndpoint.h BNetEndpoint: Fix socket leak and reduce Accept() overhead. 2013-11-24 22:36:29 +01:00
NetworkAddress.h Revert "Move getifaddrs to libnetwork again." 2015-02-05 11:07:53 +01:00
NetworkAddressResolver.h * Factored out a BNetworkAddressResolver from BNetworkAddress, that also allows 2010-08-12 11:27:14 +00:00
NetworkCookie.h More relaxing of cookie-setting rules 2014-06-09 11:17:49 +02:00
NetworkCookieJar.h Made the wrong constructor private. 2014-06-11 19:27:03 +02:00
NetworkDevice.h netserver: Add EAP defines for WPA enterprise 2013-07-17 20:16:49 -05:00
NetworkInterface.h libbnetapi: Add BNetworkRoute to replace use of route_entry. 2015-04-12 18:50:00 +02:00
NetworkNotifications.h Fix the build, which was broken in r39147. 2010-10-26 10:24:17 +00:00
NetworkRequest.h UrlRequest: add empty SetTimeout for ease of use. 2014-09-26 15:51:36 +02:00
NetworkRoster.h libbnetapi: Add BNetworkRoute to replace use of route_entry. 2015-04-12 18:50:00 +02:00
NetworkRoute.h libbnetapi: Add BNetworkRoute to replace use of route_entry. 2015-04-12 18:50:00 +02:00
SecureSocket.h Add more features in BCertificate class 2014-11-06 15:01:59 +01:00
Socket.h Added experimental version of a Socket API with SSL support. 2011-11-21 22:07:52 +01:00
Url.h BUrl: IDNA ToUnicode and ToASCII conversions. 2014-10-21 14:43:13 +02:00
UrlContext.h Add HTTP proxy support. 2014-09-15 14:24:37 +02:00
UrlProtocolAsynchronousListener.h Make BUrlProtocolAsynchronousListener inherit BUrlProtocolListener 2013-10-15 10:16:33 +02:00
UrlProtocolDispatchingListener.h BHttpRequest: propagate SSL errors to listener 2014-11-06 15:02:00 +01:00
UrlProtocolListener.h BHttpRequest: propagate SSL errors to listener 2014-11-06 15:02:00 +01:00
UrlProtocolRoster.h Refactor UrlRequest/UrlProtocol in the Service Kit 2013-10-08 11:42:05 +02:00
UrlRequest.h UrlRequest: add empty SetTimeout for ease of use. 2014-09-26 15:51:36 +02:00
UrlResult.h Reintroduce BUrlResult and add BDataRequest 2013-12-11 17:29:25 +01:00
UrlSynchronousRequest.h Network Kit: Prepare for HTTP range requests 2014-04-12 08:57:26 +02:00
net_settings.h Rewrote header. Don't know if this is even used/supported. 2009-08-27 12:45:31 +00:00