diff options
author | Michael Tuexen <tuexen@FreeBSD.org> | 2009-09-19 14:02:16 +0000 |
---|---|---|
committer | Michael Tuexen <tuexen@FreeBSD.org> | 2009-09-19 14:02:16 +0000 |
commit | 8518270e20523c8ef9454490776ac1015af9eb52 (patch) | |
tree | 7f9566e6fb4d8936c10c66c1a1768017e22def37 /sys/netinet/sctp_os_bsd.h | |
parent | d2f7d5c97530212ccc6d7a7c46b71ce976bf5a54 (diff) | |
download | src-8518270e20523c8ef9454490776ac1015af9eb52.tar.gz src-8518270e20523c8ef9454490776ac1015af9eb52.zip |
Get SCTP working in combination with VIMAGE.
Contains code from bz.
Approved by: rrs (mentor)
MFC after: 1 month.
Notes
Notes:
svn path=/head/; revision=197326
Diffstat (limited to 'sys/netinet/sctp_os_bsd.h')
-rw-r--r-- | sys/netinet/sctp_os_bsd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index f97145f89248..f0cca72c76d3 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -141,13 +141,14 @@ MALLOC_DECLARE(SCTP_M_SOCKOPT); * depending on whether VIMAGE is defined. */ /* then define the macro(s) that hook into the vimage macros */ -#define MODULE_GLOBAL(__SYMBOL) V_ ## __SYMBOL +#define MODULE_GLOBAL(__SYMBOL) V_##__SYMBOL -#define V_system_base_info VNET_NAME(system_base_info) +#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) V_system_base_info.sctpsysctl.__m +#define SCTP_BASE_SYSCTL(__m) VNET_NAME(system_base_info.sctpsysctl.__m) #define SCTP_BASE_VAR(__m) V_system_base_info.__m /* |