diff options
author | tuexen <tuexen@FreeBSD.org> | 2014-09-06 19:12:14 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2014-09-06 19:12:14 +0000 |
commit | b9adc6630bc8e98f06599ee82e8f9ec472111c6d (patch) | |
tree | ea1da495941c22ae002f4adc23be599208b4c32d /sys/netinet/sctp_os_bsd.h | |
parent | d965bce9e023caec1adf61b684c04559fcfc5d38 (diff) | |
download | FreeBSD-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.h | 16 |
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 |