[Bug 260119] [sctp] Not inheriting the DSCP/TOS socket option

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Nov 2021 14:31:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260119

            Bug ID: 260119
           Summary: [sctp] Not inheriting the DSCP/TOS socket option
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: albin.hellqvist@ericsson.com

I noticed that when setting DSCP/TOS on a server socket, it doesn't get
inherited to socket from accept(). This is not stated anywhere in any RFCs as
far as I know, but it is not consistent with how TCP sockets behaves.

There might be other socket options that are affected. I have made a summary
for DSCP/TOS at least:

FreeBSD 12.2:
IPv4 TCP:  Not inherited
IPv6 TCP:  Inherited
IPv4 SCTP: Not inherited
IPv6 SCTP: Not inherited

FreeBSD 13.0:
IPv4 TCP:  Inherited
IPv6 TCP:  Inherited
IPv4 SCTP: Not inherited
IPv6 SCTP: Not inherited

Linux (lksctp):
IPv4 TCP:  Inherited
IPv6 TCP:  Inherited
IPv4 SCTP: Not inherited
IPv6 SCTP: Inherited

Seems like this was changed for IPV4 TCP between FreeBSD 12.2 and 13.0. I
cannot find any ticket for that, but I think that the same design choice could
be considered for SCTP as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.