summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2013-11-17 00:40:51 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2013-11-17 00:40:51 +0000
commit3b88d642ddda644c9e46f853875daf94c20c07d7 (patch)
tree65c8aa6293b88204c10edc0df19b00a22db87bf1
parentd2917f09bf013632d7ba12c5cda42a46a66ab5d5 (diff)
The struct rt_metrics has changed, update documentation in route(4).
While there, add some missing constants. OK claudio@
-rw-r--r--share/man/man4/route.410
1 files changed, 7 insertions, 3 deletions
diff --git a/share/man/man4/route.4 b/share/man/man4/route.4
index 00ce9e1edb1..0f0a17728c1 100644
--- a/share/man/man4/route.4
+++ b/share/man/man4/route.4
@@ -1,4 +1,4 @@
-.\" $OpenBSD: route.4,v 1.34 2012/03/17 10:16:41 dlg Exp $
+.\" $OpenBSD: route.4,v 1.35 2013/11/17 00:40:50 bluhm Exp $
.\" $NetBSD: route.4,v 1.3 1994/11/30 16:22:31 jtc Exp $
.\"
.\" Copyright (c) 1990, 1991, 1993
@@ -30,7 +30,7 @@
.\"
.\" @(#)route.4 8.6 (Berkeley) 4/19/94
.\"
-.Dd $Mdocdate: March 17 2012 $
+.Dd $Mdocdate: November 17 2013 $
.Dt ROUTE 4
.Os
.Sh NAME
@@ -324,9 +324,9 @@ The metrics structure is:
.Bd -literal
struct rt_metrics {
u_int64_t rmx_pksent; /* packets sent using this route */
+ int64_t rmx_expire; /* lifetime for route, e.g. redirect */
u_int rmx_locks; /* Kernel must leave these values */
u_int rmx_mtu; /* MTU for this path */
- u_int rmx_expire; /* lifetime for route, e.g. redirect */
u_int rmx_refcnt; /* # references hold */
u_int rmx_hopcount; /* max hops expected */
u_int rmx_recvpipe; /* inbound delay-bandwidth product */
@@ -334,6 +334,7 @@ struct rt_metrics {
u_int rmx_ssthresh; /* outbound gateway buffer limit */
u_int rmx_rtt; /* estimated round trip time */
u_int rmx_rttvar; /* estimated rtt variance */
+ u_int rmx_pad;
};
.Ed
.Pp
@@ -361,6 +362,7 @@ Flags include the values:
#define RTF_LLINFO 0x400 /* generated by ARP or ESIS */
#define RTF_STATIC 0x800 /* manually added */
#define RTF_BLACKHOLE 0x1000 /* just discard pkts (during updates) */
+#define RTF_PROTO3 0x2000 /* protocol specific routing flag */
#define RTF_PROTO2 0x4000 /* protocol specific routing flag */
#define RTF_PROTO1 0x8000 /* protocol specific routing flag */
#define RTF_CLONED 0x10000 /* this is a cloned route */
@@ -400,6 +402,8 @@ Specifiers for which addresses are present in the messages are:
#define RTA_IFA 0x20 /* interface addr sockaddr present */
#define RTA_AUTHOR 0x40 /* sockaddr for author of redirect */
#define RTA_BRD 0x80 /* for NEWADDR, bcast or p-p dest addr */
+#define RTA_SRC 0x100 /* source sockaddr present */
+#define RTA_SRCMASK 0x200 /* source netmask present */
#define RTA_LABEL 0x400 /* route label present */
.Ed
.Sh SEE ALSO