summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>1999-09-14 00:33:23 +0000
committerru <ru@FreeBSD.org>1999-09-14 00:33:23 +0000
commitf44ea655d63fdfa8093fb0cee85d803888d69037 (patch)
tree30041861065d0056ebce56a6bc9c7f689fe5cca1 /sys
parenta1d29f64f9a648cca6e8f4a2b7483777cf768430 (diff)
downloadFreeBSD-src-f44ea655d63fdfa8093fb0cee85d803888d69037.zip
FreeBSD-src-f44ea655d63fdfa8093fb0cee85d803888d69037.tar.gz
Add comments, fix typos.
Reviewed by: wollman
Diffstat (limited to 'sys')
-rw-r--r--sys/net/route.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index a30a0f9..48f0d9a 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -188,6 +188,9 @@ struct rt_msghdr {
#define RTM_VERSION 5 /* Up the ante and ignore older versions */
+/*
+ * Message types.
+ */
#define RTM_ADD 0x1 /* Add Route */
#define RTM_DELETE 0x2 /* Delete Route */
#define RTM_CHANGE 0x3 /* Change Metrics or flags */
@@ -205,9 +208,12 @@ struct rt_msghdr {
#define RTM_NEWMADDR 0xf /* mcast group membership being added to if */
#define RTM_DELMADDR 0x10 /* mcast group membership being deleted */
+/*
+ * Bitmask values for rtm_inits and rmx_locks.
+ */
#define RTV_MTU 0x1 /* init or lock _mtu */
#define RTV_HOPCOUNT 0x2 /* init or lock _hopcount */
-#define RTV_EXPIRE 0x4 /* init or lock _hopcount */
+#define RTV_EXPIRE 0x4 /* init or lock _expire */
#define RTV_RPIPE 0x8 /* init or lock _recvpipe */
#define RTV_SPIPE 0x10 /* init or lock _sendpipe */
#define RTV_SSTHRESH 0x20 /* init or lock _ssthresh */
@@ -215,7 +221,7 @@ struct rt_msghdr {
#define RTV_RTTVAR 0x80 /* init or lock _rttvar */
/*
- * Bitmask values for rtm_addr.
+ * Bitmask values for rtm_addrs.
*/
#define RTA_DST 0x1 /* destination sockaddr present */
#define RTA_GATEWAY 0x2 /* gateway sockaddr present */
OpenPOWER on IntegriCloud