haiku/headers/private/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
..
AddressUtilities.h * Cleanup, no functional change. 2010-08-26 08:42:58 +00:00
arp_control.h
bosii_driver.h * Made bosii header self contained. 2010-11-10 21:54:47 +00:00
dns_resolver.h nfs4: Fix gcc4 warnings 2012-08-16 03:41:29 +02:00
DynamicBuffer.h DynamicBuffer::Write(): Fix return type and semantics 2014-07-03 17:39:58 +02:00
ether_driver.h Switch link speed unit to bit/s to support low bitrate speed too 2010-11-23 13:35:30 +00:00
ethernet.h * Introduced a datalink layer (2) independent way of specifying the packet 2010-08-03 11:23:03 +00:00
HttpTime.h Fix cookies with far expiration date. 2014-01-23 17:22:46 +01:00
net_buffer.h Fixed up network stack and drivers for x86_64. 2012-08-10 14:30:54 +01:00
net_datalink_protocol.h * Reworked the complete stack to allow more than one address per network 2010-07-28 17:38:23 +00:00
net_datalink.h * Renamed the proprietary SIOC_* ioctls to B_SOCKET_* - no reason to pollute 2010-08-03 15:51:54 +00:00
net_device.h * Introduced a datalink layer (2) independent way of specifying the packet 2010-08-03 11:23:03 +00:00
net_notifications.h Fix the build, which was broken in r39147. 2010-10-26 10:24:17 +00:00
net_protocol.h * Finished groundwork on ICMP by introducing a completely protocol agnostic 2010-08-04 10:35:40 +00:00
net_routing_info.h
net_socket.h * Made an uint32 out of net_socket::bound_to_device. 2010-08-27 10:56:41 +00:00
net_stack_interface.h * Renamed THREAD_FLAGS_IOCTL_SYSCALL to THREAD_FLAGS_SYSCALL, 2008-04-11 16:13:47 +00:00
net_stack.h * Fix binding to link level sockets. The bound type was constructed using the 2011-07-01 20:26:37 +00:00
net_stat.h
NetBufferUtilities.h * Cleanup. 2010-07-21 11:23:42 +00:00
NetServer.h net_server: Clients can now check if a service is running. 2015-03-27 13:23:01 +01:00
NetUtilities.h * Cleanup, no functional change. 2010-08-03 11:18:52 +00:00
ProtocolUtilities.h Skip timeout computation in is_syscall_restarted case. 2013-05-04 11:27:04 +02:00
r5_compatibility.h Corrected by previous assumption, since gethostbyname() has nothing to do with 2008-07-10 21:25:19 +00:00
userland_ipc.h
WPASupplicant.h * The net_server now tries to join the network via wpa_supplicant, if available. 2010-12-14 20:22:18 +00:00