summaryrefslogtreecommitdiffstats
path: root/sys/netinet/sctp_os_bsd.h
diff options
context:
space:
mode:
authortuexen <tuexen@FreeBSD.org>2014-09-06 19:12:14 +0000
committertuexen <tuexen@FreeBSD.org>2014-09-06 19:12:14 +0000
commitb9adc6630bc8e98f06599ee82e8f9ec472111c6d (patch)
treeea1da495941c22ae002f4adc23be599208b4c32d /sys/netinet/sctp_os_bsd.h
parentd965bce9e023caec1adf61b684c04559fcfc5d38 (diff)
downloadFreeBSD-src-b9adc6630bc8e98f06599ee82e8f9ec472111c6d.zip
FreeBSD-src-b9adc6630bc8e98f06599ee82e8f9ec472111c6d.tar.gz
Fix the handling of sysctl variables when used with VIMAGE.
While there do some cleanup of the code. MFC after: 1 week
Diffstat (limited to 'sys/netinet/sctp_os_bsd.h')
-rw-r--r--sys/netinet/sctp_os_bsd.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h
index b241f75..0b24170 100644
--- a/sys/netinet/sctp_os_bsd.h
+++ b/sys/netinet/sctp_os_bsd.h
@@ -152,16 +152,10 @@ MALLOC_DECLARE(SCTP_M_MCORE);
#define V_system_base_info VNET(system_base_info)
#define SCTP_BASE_INFO(__m) V_system_base_info.sctppcbinfo.__m
#define SCTP_BASE_STATS V_system_base_info.sctpstat
-#define SCTP_BASE_STATS_SYSCTL VNET_NAME(system_base_info.sctpstat)
-#define SCTP_BASE_STAT(__m) V_system_base_info.sctpstat.__m
-#define SCTP_BASE_SYSCTL(__m) VNET_NAME(system_base_info.sctpsysctl.__m)
+#define SCTP_BASE_STAT(__m) V_system_base_info.sctpstat.__m
+#define SCTP_BASE_SYSCTL(__m) V_system_base_info.sctpsysctl.__m
#define SCTP_BASE_VAR(__m) V_system_base_info.__m
-/*
- *
- */
-#define USER_ADDR_NULL (NULL) /* FIX ME: temp */
-
#define SCTP_PRINTF(params...) printf(params)
#if defined(SCTP_DEBUG)
#define SCTPDBG(level, params...) \
@@ -175,9 +169,9 @@ MALLOC_DECLARE(SCTP_M_MCORE);
#define SCTPDBG_ADDR(level, addr) \
{ \
do { \
- if (SCTP_BASE_SYSCTL(sctp_debug_on) & level ) { \
- sctp_print_address(addr); \
- } \
+ if (SCTP_BASE_SYSCTL(sctp_debug_on) & level ) { \
+ sctp_print_address(addr); \
+ } \
} while (0); \
}
#else
OpenPOWER on IntegriCloud