Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F154919951
D13594.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13594.id.diff
View Options
Index: sys/conf/files
===================================================================
--- sys/conf/files
+++ sys/conf/files
@@ -4254,7 +4254,7 @@
netinet/sctp_auth.c optional inet sctp | inet6 sctp
netinet/sctp_bsd_addr.c optional inet sctp | inet6 sctp
netinet/sctp_cc_functions.c optional inet sctp | inet6 sctp
-netinet/sctp_crc32.c optional inet sctp | inet6 sctp
+netinet/sctp_crc32.c optional inet | inet6
netinet/sctp_indata.c optional inet sctp | inet6 sctp
netinet/sctp_input.c optional inet sctp | inet6 sctp
netinet/sctp_output.c optional inet sctp | inet6 sctp
Index: sys/netinet/sctp_crc32.c
===================================================================
--- sys/netinet/sctp_crc32.c
+++ sys/netinet/sctp_crc32.c
@@ -35,6 +35,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
+#include "opt_sctp.h"
+
#include <netinet/sctp_os.h>
#include <netinet/sctp.h>
#include <netinet/sctp_crc32.h>
@@ -115,7 +117,7 @@
return (base);
}
-
+#ifdef SCTP
void
sctp_delayed_cksum(struct mbuf *m, uint32_t offset)
{
@@ -138,3 +140,4 @@
}
*(uint32_t *)(m->m_data + offset) = checksum;
}
+#endif /* SCTP */
Index: sys/netinet/sctp_os_bsd.h
===================================================================
--- sys/netinet/sctp_os_bsd.h
+++ sys/netinet/sctp_os_bsd.h
@@ -140,12 +140,14 @@
/* then define the macro(s) that hook into the vimage macros */
#define MODULE_GLOBAL(__SYMBOL) V_##__SYMBOL
+#ifdef SCTP
#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_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
+#endif /* SCTP */
#define SCTP_PRINTF(params...) printf(params)
#if defined(SCTP_DEBUG)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, May 1, 1:36 AM (2 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
32548298
Default Alt Text
D13594.id.diff (1 KB)
Attached To
Mode
D13594: ipfw SCTP grew accidental dependency on full options SCTP stack
Attached
Detach File
Event Timeline
Log In to Comment