Comments (3)
suggestion:
sudo apt-get install libsctp-dev
I added that to the README.md
. Thanks for the suggestion.
from dtls-examples.
So, I guess I need to build openssl locally with SCTP support enabled.
That is correct. This is described in README.md.
from dtls-examples.
After libsctp-dev was installed, other errors occurred due to that the SCTP option in OpenSSL 1.1.1b (shipped with Ubuntu 19.04) was disabled...
DTLS-Examples/src$ make
cc -std=c99 -pedantic -Wall -g -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-overlength-strings -I/usr/local/include -o dtls_sctp_chargen dtls_sctp_chargen.c -L/usr/local/lib -lssl -lcrypto -pthread -lm -ldl
dtls_sctp_chargen.c: In function ‘connection_handle’:
dtls_sctp_chargen.c:278:32: error: storage size of ‘sinfo’ isn’t known
struct bio_dgram_sctp_sndinfo sinfo;
^~~~~
dtls_sctp_chargen.c:279:32: error: storage size of ‘rinfo’ isn’t known
struct bio_dgram_sctp_rcvinfo rinfo;
^~~~~
...
So, I guess I need to build openssl locally with SCTP support enabled.
361 #ifndef OPENSSL_NO_SCTP
362 /* SCTP parameter structs */
363 struct bio_dgram_sctp_sndinfo
364 {
365 uint16_t snd_sid;
366 uint16_t snd_flags;
367 uint32_t snd_ppid;
368 uint32_t snd_context;
369 };
370
371 struct bio_dgram_sctp_rcvinfo
372 {
373 uint16_t rcv_sid;
374 uint16_t rcv_ssn;
375 uint16_t rcv_flags;
376 uint32_t rcv_ppid;
377 uint32_t rcv_tsn;
378 uint32_t rcv_cumtsn;
379 uint32_t rcv_context;
380 };
381
382 struct bio_dgram_sctp_prinfo
383 {
384 uint16_t pr_policy;
385 uint32_t pr_value;
386 };
387 #endif
from dtls-examples.
Related Issues (9)
- Failed to build SCTP programs against Linux 5.0 kernel headers HOT 1
- OpenSSL is thread-safe but multiple threads should not read from the same UDP socket fd concurrently HOT 2
- SCTP AUTH may be disabled in kernel HOT 4
- Switch from `inet_pton` to `getaddrinfo`? Why is `SSL_CTX_set_verify_depth` set to 2 in client?
- DTLS server在windows系统中不支持多client同时连入
- dtls comm can not work in windows7
- SCTP examples segfault on Ubuntu 18.10
- dtls_udp_echo server : DTLSv1_listen() still return 1 while client has been disconnected HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dtls-examples.