[PATCH] Add LE DSCP code point from RFC-8622.

Florian Weimer fweimer@redhat.com
Tue Oct 17 15:44:25 GMT 2023


* Bruno Victal:

> Signed-off-by: Bruno Victal <mirai@makinata.eu>
> ---
>  sysdeps/generic/netinet/ip.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/sysdeps/generic/netinet/ip.h b/sysdeps/generic/netinet/ip.h
> index 6bdb31b65e..20139e97af 100644
> --- a/sysdeps/generic/netinet/ip.h
> +++ b/sysdeps/generic/netinet/ip.h
> @@ -191,6 +191,11 @@ struct ip_timestamp
>   */
>  #define	IPTOS_DSCP_VA		0xb0
>  
> +/*
> + * Lower-Effort Per-Hop Behavior DSCP code point from RFC-8622, Section 12.
> + */
> +#define	IPTOS_DSCP_LE		0x04
> +
>  /*
>   * In RFC 2474, Section 4.2.2.1, the Class Selector Codepoints subsume
>   * the old ToS Precedence values.
>
> base-commit: 69239bd7a216007692470aa9d5f3658024638742

Looks okay.  The two lowest bits are taken by the ECN indicator, that's
why the value is 4 and not 1 as in the IANA registry.  I will do a test
build just to be sure and push your patch if it passes.

Reviewed-by: Florian Weimer <fweimer@redhat.com>

Thanks,
Florian



More information about the Libc-alpha mailing list