Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Add bit definitions for flags so that route(8) can u...



details:   https://anonhg.NetBSD.org/src/rev/03f8ae473f39
branches:  trunk
changeset: 828435:03f8ae473f39
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Dec 13 17:43:10 2017 +0000

description:
Add bit definitions for flags so that route(8) can use them.

diffstat:

 sys/net/route.h |  14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r ee969f1ff389 -r 03f8ae473f39 sys/net/route.h
--- a/sys/net/route.h   Wed Dec 13 17:42:44 2017 +0000
+++ b/sys/net/route.h   Wed Dec 13 17:43:10 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: route.h,v 1.114 2017/09/21 07:15:34 ozaki-r Exp $      */
+/*     $NetBSD: route.h,v 1.115 2017/12/13 17:43:10 christos Exp $     */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -172,6 +172,12 @@
 #define RTF_BROADCAST  0x80000         /* route represents a bcast address */
 #define RTF_UPDATING   0x100000        /* route is updating */
 
+#define RTFBITS "\020\1UP\2GATEWAY\3HOST\4REJECT\5DYNAMIC\6MODIFIED\7DONE" \
+    "\010MASK_PRESENT\011CONNECTED\012XRESOLVE\013LLDATA\014STATIC" \
+    "\015BLACKHOLE\016CLONED\017PROTO2\020PROTO1\021SRC\022ANNOUNCE" \
+    "\023LOCAL\024BROADCAST\025UPDATING"
+
+
 /*
  * Routing statistics.
  */
@@ -263,6 +269,9 @@
 #define RTV_RTT                0x40    /* init or lock _rtt */
 #define RTV_RTTVAR     0x80    /* init or lock _rttvar */
 
+#define RTVBITS "\020\1MTU\2HOPCOUNT\3EXPIRE\4RECVPIPE\5SENDPIPE" \
+    "\6SSTHRESH\7RTT\010RTTVAR"
+
 /*
  * Bitmask values for rtm_addr.
  */
@@ -276,6 +285,9 @@
 #define RTA_BRD                0x80    /* for NEWADDR, broadcast or p-p dest addr */
 #define RTA_TAG                0x100   /* route tag */
 
+#define RTABITS "\020\1DST\2GATEWAY\3NETMASK\4GENMASK\5IFP\6IFA\7AUTHOR" \
+    "\010BRD\011TAG"
+
 /*
  * Index offsets for sockaddr array for alternate internal encoding.
  */



Home | Main Index | Thread Index | Old Index