top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

packet->transport->asoc = NULL in sctp_packet_transmit

0 votes
332 views

I'm adding experimental support for UDP encapsulation of SCTP packets. I got most of if working well. However, I noticed a NULL pointer dereference in sctp_packet_transmit as I assumed that packet->transport->asoc weren't NULL so I tried to access tunneling information that I store in packet->transport->asoc->ep->base.

In what circumstances is assoc NULL in sctp_packet_transmit?

posted Jul 19, 2016 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

There may be others, but the case that comes immediately to mind is when you have an error in the construction of a new association (e.g. a state cookie, or an abort during setup). In those cases we call sctp_ootb_pkt_new, which sends a packet with no association associated.

answer Jul 19, 2016 by Seema Siddique
Similar Questions
+1 vote

It is found that IP X haven't replied heartbeat Ack to IP A but our client will not try another path B->Y. Would you advise how B->Y path can be enable?

lksctp client IP info:
Primary IP: A
Secondary IP: B

Server primary IP: X
Server secondary IP: Y

+2 votes

Is LKSCTP 100% compliant with the following?

RFC 2960 - SCTP (obsoleted by RFC 4960)
RFC 3309 - SCTP Checksum Change (obsoleted by RFC 4960)
RFC 3758 - SCTP Partial Reliability Extension
RFC 3873 - SCTP MIB
RFC 4460 - SCTP Errata and Issues
RFC 4895 - Authenticated Chunks for SCTP
RFC 4960 - SCTP
RFC 5061 - SCTP Dynamic Address Reconfiguration
RFC 5062 - Security Attacks Against SCTP

Any pointers are welcome?

+4 votes

Are the values in /proc/sys/net/sctp/sctp_[rw]mem honored? Or are they overridden by those in /proc/sys/net/core/[rw]mem_*

Furthermore, the kernel documentation states that sctp_wmem has no effect, but makes no such mention for sctp_mem and sctp_rmem.

0 votes

We are using LKSCTP version 1.0.16 and have configured the SCTP configuration parameters as follows:

SctpInitMaxAttempts : 10
SctpInitRTO : 3000
SctpMinRTO : 1000
SctpMaxRTO : 60000

We observed that SCTP:INIT re-transmission is occurring at interval 6,12,24.., 6,12,24.., 6,12,24....... As per our understanding re-transmission should occur at interval 3,6,12,24..., 3,6,12,24...3,6,12,24... since SctpInitRTO=3000.

Could you please let us know if it is an expected behavior or not. Also why re-transmission interval is not started with 3,6,12,24...

...