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:
Axel Dörfler
2007-04-01 12:06:16 +00:00
parent 694e5de9b0
commit 2d55afcdf7
5 changed files with 130 additions and 8 deletions
+2 -1
View File
@@ -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;
};
+3 -2
View File
@@ -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 */