Support getting route information for a specific destination
using SIOCGETRT. Patch by Hugo Santos. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20494 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2006, Haiku, Inc. All Rights Reserved.
|
||||
* Copyright 2006-2007, Haiku, Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _NET_ROUTE_H
|
||||
@@ -27,6 +27,7 @@ struct route_entry {
|
||||
struct sockaddr *destination;
|
||||
struct sockaddr *mask;
|
||||
struct sockaddr *gateway;
|
||||
struct sockaddr *source;
|
||||
uint32_t flags;
|
||||
uint32_t mtu;
|
||||
};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2006, Haiku Inc. All Rights Reserved.
|
||||
* Copyright 2002-2007, Haiku Inc. All Rights Reserved.
|
||||
* Distributed under the terms of the MIT License.
|
||||
*/
|
||||
#ifndef _SYS_SOCKIO_H
|
||||
@@ -36,6 +36,7 @@ enum {
|
||||
|
||||
SIOCGRTSIZE, /* get route table size */
|
||||
SIOCGRTTABLE, /* get route table */
|
||||
SIOCGETRT, /* get route information for destination */
|
||||
|
||||
SIOCGIFSTATS, /* get interface stats */
|
||||
SIOCGIFPARAM, /* get interface parameter */
|
||||
@@ -53,4 +54,4 @@ enum {
|
||||
SIOCGPGRP /* get process group */
|
||||
};
|
||||
|
||||
#endif /* _SYS_SOCKIO_H */
|
||||
#endif /* _SYS_SOCKIO_H */
|
||||
|
||||
Reference in New Issue
Block a user