Giter Club home page Giter Club logo

Comments (3)

tuexen avatar tuexen commented on June 17, 2024 1

suggestion:

sudo apt-get install libsctp-dev

I added that to the README.md. Thanks for the suggestion.

from dtls-examples.

tuexen avatar tuexen commented on June 17, 2024 1

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.

liuqun avatar liuqun commented on June 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.