Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add patch to increase usrsctp SCTP_DIAG_INFO_LEN #9

Merged
merged 1 commit into from
Nov 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cmake-scripts/libusrsctp-CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ExternalProject_Add(project_libusrsctp
GIT_REPOSITORY https://github.com/sctplab/usrsctp.git
GIT_TAG 913de3599feded8322882bdae69f346da5a258fc
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/build
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/../local/ -DCMAKE_C_FLAGS="-Wno-error"
PATCH_COMMAND patch -p1 < ${CMAKE_SOURCE_DIR}/../../cmake-scripts/libusrsctp-diag-info-size.patch
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_SOURCE_DIR}/../local/
BUILD_ALWAYS TRUE
TEST_COMMAND ""
)
11 changes: 11 additions & 0 deletions cmake-scripts/libusrsctp-diag-info-size.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- a/usrsctplib/netinet/sctp_constants.h
+++ b/usrsctplib/netinet/sctp_constants.h
@@ -769,7 +769,7 @@ extern void getwintimeofday(struct timeval *tv);
#define SCTP_DEFAULT_SPLIT_POINT_MIN 2904

/* Maximum length of diagnostic information in error causes */
-#define SCTP_DIAG_INFO_LEN 128
+#define SCTP_DIAG_INFO_LEN 1280

/* ABORT CODES and other tell-tale location
* codes are generated by adding the below