network stack: Style fix of constant name.
This commit is contained in:
@@ -323,7 +323,7 @@ list_routes(net_domain_private* domain, void* buffer, size_t size)
|
|||||||
RecursiveLocker _(domain->lock);
|
RecursiveLocker _(domain->lock);
|
||||||
|
|
||||||
RouteList::Iterator iterator = domain->routes.GetIterator();
|
RouteList::Iterator iterator = domain->routes.GetIterator();
|
||||||
const size_t baseSize = IF_NAMESIZE + sizeof(route_entry);
|
const size_t kBaseSize = IF_NAMESIZE + sizeof(route_entry);
|
||||||
size_t spaceLeft = size;
|
size_t spaceLeft = size;
|
||||||
|
|
||||||
sockaddr zeros;
|
sockaddr zeros;
|
||||||
@@ -334,7 +334,7 @@ list_routes(net_domain_private* domain, void* buffer, size_t size)
|
|||||||
while (iterator.HasNext()) {
|
while (iterator.HasNext()) {
|
||||||
net_route* route = iterator.Next();
|
net_route* route = iterator.Next();
|
||||||
|
|
||||||
size = baseSize;
|
size = kBaseSize;
|
||||||
|
|
||||||
sockaddr* destination = NULL;
|
sockaddr* destination = NULL;
|
||||||
sockaddr* mask = NULL;
|
sockaddr* mask = NULL;
|
||||||
@@ -372,7 +372,7 @@ list_routes(net_domain_private* domain, void* buffer, size_t size)
|
|||||||
request.ifr_route.flags = route->flags;
|
request.ifr_route.flags = route->flags;
|
||||||
|
|
||||||
// copy data into userland buffer
|
// copy data into userland buffer
|
||||||
if (user_memcpy(buffer, &request, baseSize) < B_OK
|
if (user_memcpy(buffer, &request, kBaseSize) < B_OK
|
||||||
|| (route->destination != NULL
|
|| (route->destination != NULL
|
||||||
&& user_memcpy(request.ifr_route.destination,
|
&& user_memcpy(request.ifr_route.destination,
|
||||||
route->destination, route->destination->sa_len) < B_OK)
|
route->destination, route->destination->sa_len) < B_OK)
|
||||||
|
|||||||
Reference in New Issue
Block a user