Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.kernel > #67676

Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards

Path csiph.com!4.us.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod
From Thorsten Glaser <t.glaser@tarent.de>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards
Date Mon, 03 Aug 2020 19:10:02 +0200
Message-ID <AzM8i-5Jc-9@gated-at.bofh.it> (permalink)
References <AxCG6-6la-9@gated-at.bofh.it> <Azqr7-vc-3@gated-at.bofh.it> <Azs9z-1zu-3@gated-at.bofh.it> <AzsVY-25w-17@gated-at.bofh.it> <AxCG6-6la-9@gated-at.bofh.it> <Azt5D-295-3@gated-at.bofh.it> <Azzup-68h-3@gated-at.bofh.it> <AxCG6-6la-9@gated-at.bofh.it> <Azzup-68h-3@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Aug 3 17:03:10 2020
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -0.699
Reply-To Thorsten Glaser <t.glaser@tarent.de>, 966459@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc Debian Kernel Team <debian-kernel@lists.debian.org>
X-Debian-Pr-Message followup 966459
X-Debian-Pr-Package src:linux
X-Debian-Pr-Keywords upstream
X-Debian-Pr-Source linux
X-Spam-Bayes score:0.0000 Tokens: new, 17; hammy, 150; neutral, 44; spammy, 0. spammytokens: hammytokens:0.000-+--H*f:sk:alpine., 0.000-+--H*MI:sk:alpine., 0.000-+--mirabilos, 0.000-+--H*M:tarent, 0.000-+--H*f:sk:Pine.BS
X-X-Sender tglase@tglase-nb.lan.tarent.de
User-Agent Alpine 2.23 (DEB 453 2020-06-18)
Content-Language de-DE-1901
MIME-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding QUOTED-PRINTABLE
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1617016
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 22
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Cc 966459@bugs.debian.org, netdev <netdev@vger.kernel.org>
X-Original-Date Mon, 3 Aug 2020 18:58:47 +0200 (CEST)
X-Original-Message-ID <alpine.DEB.2.23.453.2008031733520.11571@tglase-nb.lan.tarent.de>
X-Original-References <159596111771.2639.6929056987566441726.reportbug@tglase-nb.lan.tarent.de> <e67190b7de22fff20fb4c5c084307e0b76001248.camel@decadent.org.uk> <Pine.BSM.4.64L.2008021919500.2148@herc.mirbsd.org> <e1beb0b98109d90738e054683f5eb1dd483011dd.camel@decadent.org.uk> <159596111771.2639.6929056987566441726.reportbug@tglase-nb.lan.tarent.de> <alpine.DEB.2.23.453.2008022243310.15898@tglase-nb.lan.tarent.de> <db7d2f4dde6db2af82c880756d76af1b7c1e41e8.camel@decadent.org.uk> <159596111771.2639.6929056987566441726.reportbug@tglase-nb.lan.tarent.de> <db7d2f4dde6db2af82c880756d76af1b7c1e41e8.camel@decadent.org.uk>
Xref csiph.com linux.debian.bugs.dist:1020409 linux.debian.kernel:67676

Cross-posted to 2 groups.

Show key headers only | View raw


Hi Ben,

> For what it's worth, FreeBSD/Darwin and Windows also put 4 bytes of
> data in a IPV6_TCLASS cmsg.  So whether or not it's "right", it's
> consistent between three independent implementations.

oh, thank you, I don’t have any of these systems around at the
moment, so checking them was tricky for me.

So basically I should read an int in host endianness then (or
keep the code I currently have that compares byte 0 and 3, using
the one that’s not 0, if any). Great, thank you!

After some minor porting work, it turns out that the current code
does work on MidnightBSD (equivalent to FreeBSD 10.4) for IPv6.
I guess I’ll keep ints then.

bye,
//mirabilos
-- 
15:41⎜<Lo-lan-do:#fusionforge> Somebody write a testsuite for helloworld :-)

Back to linux.debian.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Thorsten Glaser <tg@mirbsd.de> - 2020-07-28 20:40 +0200
  Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Ben Hutchings <ben@decadent.org.uk> - 2020-08-02 20:00 +0200
    Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Thorsten Glaser <t.glaser@tarent.de> - 2020-08-02 21:50 +0200
      Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Ben Hutchings <ben@decadent.org.uk> - 2020-08-02 22:40 +0200
        Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Thorsten Glaser <t.glaser@tarent.de> - 2020-08-02 22:50 +0200
          Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Ben Hutchings <ben@decadent.org.uk> - 2020-08-03 05:40 +0200
            Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Thorsten Glaser <t.glaser@tarent.de> - 2020-08-03 19:10 +0200
              Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Thorsten Glaser <t.glaser@tarent.de> - 2020-08-04 21:10 +0200

csiph-web