Module Name: src
Committed By: matt
Date: Thu May 13 05:34:58 UTC 2010
Modified Files:
src/sys/net [matt-nb5-mips64]: route.h
Log Message:
Add RTAX_NAMES macro to initialize an array of names for RTAX_*
To generate a diff of this commit:
cvs rdiff -u -r1.70.16.1.4.1 -r1.70.16.1.4.2 src/sys/net/route.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/route.h
diff -u src/sys/net/route.h:1.70.16.1.4.1 src/sys/net/route.h:1.70.16.1.4.2
--- src/sys/net/route.h:1.70.16.1.4.1 Tue May 11 21:00:13 2010
+++ src/sys/net/route.h Thu May 13 05:34:58 2010
@@ -1,4 +1,4 @@
-/* $NetBSD: route.h,v 1.70.16.1.4.1 2010/05/11 21:00:13 matt Exp $ */
+/* $NetBSD: route.h,v 1.70.16.1.4.2 2010/05/13 05:34:58 matt Exp $ */
/*
* Copyright (c) 1980, 1986, 1993
@@ -240,6 +240,9 @@
#define RTAX_BRD 7 /* for NEWADDR, broadcast or p-p dest addr */
#define RTAX_MAX 8 /* size of array to allocate */
+#define RTAX_NAMES { "dst", "gateway", "netmask", "genmask", \
+ "ifp", "ifa", "author", "brd" }
+
#define RT_ROUNDUP(a) \
((a) > 0 ? (1 + (((a) - 1) | (sizeof(u_quad_t) - 1))) : sizeof(u_quad_t))
#define RT_ADVANCE(x, n) (x += RT_ROUNDUP((n)->sa_len))