From nobody Mon Nov 29 14:31:42 2021 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 38C1918B6FF1 for ; Mon, 29 Nov 2021 14:31:42 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2nq16snRz3ptK for ; Mon, 29 Nov 2021 14:31:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id CBD8F23CFE for ; Mon, 29 Nov 2021 14:31:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 1ATEVfWD039828 for ; Mon, 29 Nov 2021 14:31:41 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ATEVfVC039827 for bugs@FreeBSD.org; Mon, 29 Nov 2021 14:31:41 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260119] [sctp] Not inheriting the DSCP/TOS socket option Date: Mon, 29 Nov 2021 14:31:42 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: albin.hellqvist@ericsson.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638196302; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=29oSTBeuuuihJiOYzA1A8eyJGyp4qHTE9tSrWpWp7/0=; b=gggCMAR8k6hIedjr5NWuKKGnsfic6nZSDWBIJAZQuOyilqc+ROrfRplO+k9qOLcwg/gaDO SYoOIiComDmO4OD+I+gOWqKN2YCFZD1X7ZpuEWds5d+hbyLcq50tz7JoevB+p6kjSPMxrs 6rSU3kY0eyGU9V0BVfYfxq7iHalcgia6FWRPM0qDVRrIse6omiINDcncIuF4ekky04Ltyo N1EkMPiK+FpjOrDBQGHePJjA//A7Pl+Z0tn7fXth1+FDuBF7AtpBcLAgwz8C+9i7lNv9S9 lIal7tBqfksBTS/kQc39dDhiKUm273WTRtLZAAZQeRsMBCSTYbeT7x6QQX9PYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638196302; a=rsa-sha256; cv=none; b=wa9Ayciqq/RPdkoDqLJHOCTno4N2Frb1/yhuAlNZo+n3o4Z3GjamziEq803ALG/UOqxdyY k21jEcuSK9n8E/lqQzokzD4xENkdNjmoxyv5hzMADuVgo5SyQCX7Cj7L7LXEoMnnVANe36 5qxaOGtAJx7uM0WjrVv9Km7Vj5mZBXQYM3ofnDgW2BAwA1kKOXz3ZEXFN622pJiCDLk+Ei +k1ZmKnRknx7T+8DfQJbxUcg43NXPMgEQGR3cwFeqO1gDHyohmUGEVN2QnYuuXH0au+Dmp q47w33st9a2xm/sry8p4TmhMM65F8kVwAaCVm/L4hQVWLcA2JYF6w4h5/39BiA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260119 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 co= uld be considered for SCTP as well. --=20 You are receiving this mail because: You are the assignee for the bug.=