* Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29384 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -40,6 +40,10 @@ struct interface_protocol : net_datalink_protocol {
|
||||
};
|
||||
|
||||
|
||||
/*! A service thread for each device interface. It just reads as many packets
|
||||
as availabe, deframes them, and puts them into the receive queue of the
|
||||
device interface.
|
||||
*/
|
||||
static status_t
|
||||
device_reader_thread(void* _interface)
|
||||
{
|
||||
@@ -108,6 +112,7 @@ interface_address(net_interface* interface, int32 option)
|
||||
}
|
||||
|
||||
|
||||
/*! Removes the default routes as set by add_default_routes() again. */
|
||||
static void
|
||||
remove_default_routes(net_interface_private* interface, int32 option)
|
||||
{
|
||||
@@ -131,6 +136,9 @@ remove_default_routes(net_interface_private* interface, int32 option)
|
||||
}
|
||||
|
||||
|
||||
/*! Adds the default routes that every interface needs, ie. the local host
|
||||
route, and one for the subnet (if set).
|
||||
*/
|
||||
static void
|
||||
add_default_routes(net_interface_private* interface, int32 option)
|
||||
{
|
||||
|
||||
@@ -298,8 +298,7 @@ fill_route_entry(route_entry *target, void *_buffer, size_t bufferSize,
|
||||
// #pragma mark - exported functions
|
||||
|
||||
|
||||
/*!
|
||||
Determines the size of a buffer large enough to contain the whole
|
||||
/*! Determines the size of a buffer large enough to contain the whole
|
||||
routing table.
|
||||
*/
|
||||
uint32
|
||||
@@ -325,8 +324,7 @@ route_table_size(net_domain_private *domain)
|
||||
}
|
||||
|
||||
|
||||
/*!
|
||||
Dumps a list of all routes into the supplied userland buffer.
|
||||
/*! Dumps a list of all routes into the supplied userland buffer.
|
||||
If the routes don't fit into the buffer, an error (\c ENOBUFS) is
|
||||
returned.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user