Giter Club home page Giter Club logo

Comments (7)

lminiero avatar lminiero commented on June 30, 2024 2

Looks like it's failing on their own CI via GitHub actions as well (we noticed it via a CI we have that involves usrsctp). @tuexen any chance this can be fixed as @hboetes suggested? Or would you rather one of us prepare a PR with the fix?

from usrsctp.

hboetes avatar hboetes commented on June 30, 2024 1

For anybody else running into this issue, I think this should fix it. I bet the author will have an even better solution.

diff --git a/usrsctplib/netinet/sctp_output.c b/usrsctplib/netinet/sctp_output.c
index 7f79600..4d25c0e 100755
--- a/usrsctplib/netinet/sctp_output.c
+++ b/usrsctplib/netinet/sctp_output.c
@@ -9015,7 +9015,8 @@ again_one_more_time:
 					 * flight size since this little guy
 					 * is a control only packet.
 					 */
-					use_zero_crc = asoc->zero_checksum = 2;
+					asoc->zero_checksum = 2;
+					use_zero_crc = 2;
 					if (asconf) {
 						sctp_timer_start(SCTP_TIMER_TYPE_ASCONF, inp, stcb, net);
 						use_zero_crc = false;

from usrsctp.

hboetes avatar hboetes commented on June 30, 2024 1

Closed with f9f9502

from usrsctp.

kschoi93 avatar kschoi93 commented on June 30, 2024

use_zero_crc = asoc->zero_checksum = 2;
-> use_zero_crc = asoc->zero_checksum == 2;

from usrsctp.

LeaTaka avatar LeaTaka commented on June 30, 2024

Temp. workaround as described above by @hboetes :
sed -i -e 's|use_zero_crc = asoc->zero_checksum = 2;|asoc->zero_checksum = 2;\n\t\t\t\t\tuse_zero_crc = 2;|g' usrsctplib/netinet/sctp_output.c

from usrsctp.

lminiero avatar lminiero commented on June 30, 2024

@LeaTaka well, that really depends on what the original meaning of the commit was: was it a double assignment, as @hboetes assumed, or was it a "set this variable to 1 only if this other value is equal to 2" as @kschoi93 interpreted it instead? Without more context from the usrsctp developers, I'm not sure what patch makes more sense (since I'm not that familiar with the code internals).

from usrsctp.

kschoi93 avatar kschoi93 commented on June 30, 2024

that's right. i agree with you
It is not known which answer is correct unless the developer of usrsctp directly looks at this problem.

but I think it is a problem with the code writing rules of the C language.

I confirmed the commit to fix the problem code. @lminiero
f9f9502

from usrsctp.

Related Issues (20)

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.