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


Groups > linux.debian.kernel > #85798 > unrolled thread

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

Started bySalvatore Bonaccorso <carnil@debian.org>
First post2025-02-20 13:30 +0100
Last post2025-02-20 13:30 +0100
Articles 2 — 2 participants

Back to article view | Back to linux.debian.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards Salvatore Bonaccorso <carnil@debian.org> - 2025-02-20 13:30 +0100
    Processed: Re: Bug#966459: linux: traffic class socket options  (both IPv4/IPv6) inconsistent with docs/standards "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-02-20 13:30 +0100

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

FromSalvatore Bonaccorso <carnil@debian.org>
Date2025-02-20 13:30 +0100
SubjectBug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards
Message-ID<KidQM-BJ6-79@gated-at.bofh.it>
Control: tags -1 + moreinfo

Hi,

On Tue, Aug 04, 2020 at 08:59:42PM +0200, Thorsten Glaser wrote:
> On Mon, 3 Aug 2020, Thorsten Glaser wrote:
> 
> > keep the code I currently have that compares byte 0 and 3, using
> 
> Actually not. I’ve added some debugging code with…
> 
> static size_t
> cmsg_actual_data_len(const struct cmsghdr *cmsg)
> {
>         union {
>                 const struct cmsghdr *cmsg;
>                 const unsigned char *uc;
>         } ptr[(
>                 /* compile-time assertions */
>                 sizeof(socklen_t) <= sizeof(size_t)
>             ) ? 1 : -1];
>         ptrdiff_t pd;
> 
>         ptr[0].cmsg = cmsg;
>         pd = CMSG_DATA(cmsg) - ptr[0].uc;
>         return ((size_t)cmsg->cmsg_len - (size_t)pd);
> }
> 
> … and dumping the received data on Linux and MidnightBSD
> (the two systems I currently have access) and found varying
> results but if this returns 4 I think I better consume an int.

I see it was forwarded back then to
https://lore.kernel.org/netdev/e67190b7de22fff20fb4c5c084307e0b76001248.camel@decadent.org.uk/
but there was no comment from netdev people.

Should this bug be closed?

Regards,
Salvatore

[toc] | [next] | [standalone]


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

From"Debian Bug Tracking System" <owner@bugs.debian.org>
Date2025-02-20 13:30 +0100
SubjectProcessed: Re: Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards
Message-ID<KidQP-BJ6-145@gated-at.bofh.it>
In reply to#85798
Processing control commands:

> tags -1 + moreinfo
Bug #966459 [src:linux] linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards
Added tag(s) moreinfo.

-- 
966459: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=966459
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

[toc] | [prev] | [standalone]


Back to top | Article view | linux.debian.kernel


csiph-web