From nobody Mon Nov 29 14:33:36 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 E3AC718B82FE for ; Mon, 29 Nov 2021 14:33:36 +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 4J2nsD2Vf7z3qsk for ; Mon, 29 Nov 2021 14:33:36 +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 1138624247 for ; Mon, 29 Nov 2021 14:33:36 +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 1ATEXZo7040997 for ; Mon, 29 Nov 2021 14:33:35 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 1ATEXZ5d040996 for bugs@FreeBSD.org; Mon, 29 Nov 2021 14:33:35 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:33:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: attachments.created Message-ID: In-Reply-To: References: 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=1638196416; 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: in-reply-to:in-reply-to:references:references; bh=8b0Pdlg9VKKbLed1hqHlFELSacxC8KZQ9wW0TSwTJHM=; b=y3wJklyigFrY5YLlSw59IMS3XH5hWqlesAvZeqSz/H8vXDBvyuf233gPAtKqd5IzAl2CBl szRhoRSrx+4r1D5u1k0PL7zVC96/YmCDgnQWhCUMta+M/o6mSI7kfdUp5We593A8l4ewWA +sdi4qk8Q2AeQOpx1savlP0y2fPqpHCpvJTxfHr4FRKHSETxusYhQ5PBKBvE2p2YROLpiU EkxbqGtM4ISkNdj0B1X4KZcNy9Dz2/hmUvniLxaZcfq0HGDjlxE5PlFI/sVKmWqqaIX7Dd rTc5QVB6WEuSWk1im52aTlThQYPw7m40myGdu0o/sx3LYCJ7K1wjGwQj9zfeBg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638196416; a=rsa-sha256; cv=none; b=VW0Q5iLukeVgVJOdqnBdwXUMOxThGVuxyvbaYvSZh9lpPHixLvL1T0ZrU/F8PsViZdSofo RylL4WRNCbwBvygsp4qgEMi5lhCuIJgDVd/Pav3ikWYoIM3j4BFZUg9fcXoSAYZ58El3Se 7X53xHP1ARXRWwT9N9vqDgzVmOLg5RImX3Yono/uaz2aWAnlobtG6GF7ZrDztYiDHsSzbc +bu5diMREUmoPjy1jQ62IHsD6o/im9Mbm8/3r+wLdIyKnycI7IOdfPB9zTa6s7e3HoMdto Tazb2mMdSYCDXp42rEvXA6baVLMhf0UoIah4h6HB5w1HMua/x0vTn2rXICVDig== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260119 --- Comment #1 from Albin --- Created attachment 229794 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229794&action= =3Dedit Test files for reproducing the issue I added some tests if it helps. They can be compiled using: g++ -o client client.cpp utils.cpp g++ -o server server.cpp utils.cpp I have tested it in VMs with the SCTP module enabled. I have also added ali= as addresses to the loopback interface so that I could run both the server and client over the loopback interface. These alias addresess were added: 127.0.0.2 127.0.0.3 127.0.0.4 127.0.0.5 127.0.0.6 127.0.0.7 ::2 ::3 ::4 ::5 ::6 ::7 The test can be started using: ./server --poll --ipv4 --sctp --test-dscp ./client --poll --ipv4 --sctp --test-dscp IPv6 as well as TCP can be tested as well to compare the behavior. --=20 You are receiving this mail because: You are the assignee for the bug.=