summaryrefslogtreecommitdiffstats
path: root/sys/netinet6/nd6.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-07-16 21:13:04 +0000
committerrwatson <rwatson@FreeBSD.org>2009-07-16 21:13:04 +0000
commit88f8de4d4001c74946458579ca0710df70161c90 (patch)
tree55b9efd9d8e3a027a51c2539777939228ae3532b /sys/netinet6/nd6.c
parentbfbc302bca72638c26907b5b0ee204eab992fdde (diff)
downloadFreeBSD-src-88f8de4d4001c74946458579ca0710df70161c90.zip
FreeBSD-src-88f8de4d4001c74946458579ca0710df70161c90.tar.gz
Remove unused VNET_SET() and related macros; only VNET_GET() is
ever actually used. Rename VNET_GET() to VNET() to shorten variable references. Discussed with: bz, julian Reviewed by: bz Approved by: re (kensmith, kib)
Diffstat (limited to 'sys/netinet6/nd6.c')
-rw-r--r--sys/netinet6/nd6.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 9c97988..3584b17 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -93,8 +93,8 @@ VNET_DEFINE(int, nd6_gctimer);
static VNET_DEFINE(int, nd6_maxndopt);
VNET_DEFINE(int, nd6_maxnudhint);
static VNET_DEFINE(int, nd6_maxqueuelen);
-#define V_nd6_maxndopt VNET_GET(nd6_maxndopt)
-#define V_nd6_maxqueuelen VNET_GET(nd6_maxqueuelen)
+#define V_nd6_maxndopt VNET(nd6_maxndopt)
+#define V_nd6_maxqueuelen VNET(nd6_maxqueuelen)
VNET_DEFINE(int, nd6_debug);
@@ -107,7 +107,7 @@ VNET_DEFINE(struct nd_drhead, nd_defrouter);
VNET_DEFINE(struct nd_prhead, nd_prefix);
VNET_DEFINE(int, nd6_recalc_reachtm_interval);
-#define V_nd6_recalc_reachtm_interval VNET_GET(nd6_recalc_reachtm_interval)
+#define V_nd6_recalc_reachtm_interval VNET(nd6_recalc_reachtm_interval)
static struct sockaddr_in6 all1_sa;
@@ -121,14 +121,14 @@ static void nd6_llinfo_timer(void *);
static void clear_llinfo_pqueue(struct llentry *);
static VNET_DEFINE(struct callout, nd6_slowtimo_ch);
-#define V_nd6_slowtimo_ch VNET_GET(nd6_slowtimo_ch)
+#define V_nd6_slowtimo_ch VNET(nd6_slowtimo_ch)
VNET_DEFINE(struct callout, nd6_timer_ch);
VNET_DECLARE(int, dad_ignore_ns);
VNET_DECLARE(int, dad_maxtry);
-#define V_dad_ignore_ns VNET_GET(dad_ignore_ns)
-#define V_dad_maxtry VNET_GET(dad_maxtry)
+#define V_dad_ignore_ns VNET(dad_ignore_ns)
+#define V_dad_maxtry VNET(dad_maxtry)
void
nd6_init(void)
OpenPOWER on IntegriCloud