Skip to contentSkip to conversation

SCTP sockopt discrepancy between 2.4 and 2.6.

DISCUSSION David Woodhouse 3 participants 6 messages Feb 2, 2004 – Feb 3, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

The 2.4 and 2.6 SCTP code have _different_ values for the SCTP_* sockopts. The 2.4 version claims to implement draft-ietf-tsvwg-sctpsocket-04.txt while the 2.6 version implements draft-ietf-tsvwg-sctpsocket-07.txt.

This means that tools compiled with the current libraries and header files cannot work on the 2.4 kernel.

Am I missing something -- like perhaps the existence of a patch to update the 2.4 kernel -- or is the SCTP implementation in 2.4 no longer being maintained, and no longer compatible with 2.6 and its userspace?

Signature · 1 line
dwmw2
#1 lore raw
Quoted 3 lines · On Mon, 02 Feb 2004 18:43:03 +0000 David Woodhouse <[email protected]> wrote:

Am I missing something -- like perhaps the existence of a patch to update the 2.4 kernel -- or is the SCTP implementation in 2.4 no longer being maintained, and no longer compatible with 2.6 and its userspace?

Good catch David, this does need to be synchronized and fixed.

I believe the 2.4.x SCTP code was a port of some older 2.6.x incantation and then the 2.6.x line kept being updated yet such updates never were merged 2.4.x'ward.

#2 lore raw
In reply to David Woodhouse
Quoted 4 lines · David Woodhouse

The 2.4 and 2.6 SCTP code have _different_ values for the SCTP_* sockopts. The 2.4 version claims to implement draft-ietf-tsvwg-sctpsocket-04.txt while the 2.6 version implements draft-ietf-tsvwg-sctpsocket-07.txt.

I think 2.4 lksctp is compatible with draft-iets-tsvwg-sctpsocket-06.txt.

Quoted 3 lines

This means that tools compiled with the current libraries and header files cannot work on the 2.4 kernel.

Right. The latest lksctp-tools(lksctp-tools-2.6.0-test7-0.7.4) will not work with 2.4. An earlier version(lksctp-tools-2_5_67-0_6_9) may work with 2.4.

Quoted 4 lines

Am I missing something -- like perhaps the existence of a patch to update the 2.4 kernel -- or is the SCTP implementation in 2.4 no longer being maintained, and no longer compatible with 2.6 and its userspace?

2.4 lksctp implementation is a backport from 2.6(the backport originally was done from 2.5.69). The backport process should have continued and kept up with the 2.6 changes. But due to resource problems, it is not happening. 2.6 lksctp is under active development and is compatible with the latest SCTP sockets api draft(ver 07).

Are you interested in a 2.4 version of lksctp?

Thanks
Sridhar

#3 lore raw

I appreciate your status report Sridhar, thank you.

But the fact of the matter is that 2.4.x and 2.6.x cannot export two totally incompatible user visible APIs for the SCTP socket layer.

This is something which must be fixed, not something we would like to be fixed :-)

#4 lore raw
Quoted 8 lines · David S. Miller

I appreciate your status report Sridhar, thank you.

But the fact of the matter is that 2.4.x and 2.6.x cannot export two totally incompatible user visible APIs for the SCTP socket layer.

This is something which must be fixed, not something we would like to be fixed :-)

I contacted the team that started the 2.4 backport and we will try to fix this in the next few weeks so that 2.4 lksctp is in sync 2.6. Hopefully this will happen by 2.4.26.

Thanks
Sridhar

#5 lore raw
Quoted 3 lines · On Tue, 3 Feb 2004 10:13:54 -0800 (PST) Sridhar Samudrala <[email protected]>…

I contacted the team that started the 2.4 backport and we will try to fix this in the next few weeks so that 2.4 lksctp is in sync 2.6. Hopefully this will happen by 2.4.26.

That's great news, thanks a lot for the status report.