Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #85798
| From | Salvatore Bonaccorso <carnil@debian.org> |
|---|---|
| Newsgroups | linux.debian.bugs.dist, linux.debian.kernel |
| Subject | Bug#966459: linux: traffic class socket options (both IPv4/IPv6) inconsistent with docs/standards |
| Date | 2025-02-20 13:30 +0100 |
| Message-ID | <KidQM-BJ6-79@gated-at.bofh.it> (permalink) |
| References | (7 earlier) <AzM8i-5Jc-9@gated-at.bofh.it> <AxCG6-6la-9@gated-at.bofh.it> <AAatX-3Q6-19@gated-at.bofh.it> <AxCG6-6la-9@gated-at.bofh.it> <AAatX-3Q6-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Cross-posted to 2 groups.
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
Back to linux.debian.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
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
csiph-web