Add voice-admit DSCP code point from RFC-5865

Message ID 20230416005152.24571-1-ronan@rjp.ie
State Committed
Commit 8f59fc79b7382a424bd9a0f89807c5adcd1b60df
Delegated to: Florian Weimer
Headers
Series Add voice-admit DSCP code point from RFC-5865 |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent
dj/TryBot-32bit success Build for i686

Commit Message

Ronan Pigott April 16, 2023, 12:51 a.m. UTC
  ---
 sysdeps/generic/netinet/ip.h | 5 +++++
 1 file changed, 5 insertions(+)
  

Comments

Florian Weimer May 22, 2023, 8:15 p.m. UTC | #1
* Ronan Pigott via Libc-alpha:

> ---
>  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 32236dc1ce53..6bdb31b65e99 100644
> --- a/sysdeps/generic/netinet/ip.h
> +++ b/sysdeps/generic/netinet/ip.h
> @@ -186,6 +186,11 @@ struct ip_timestamp
>  #define	IPTOS_DSCP_AF43		0x98
>  #define	IPTOS_DSCP_EF		0xb8
>  
> +/*
> + * Voice-Admit DSCP code point from RFC-5865, Section 4.
> + */
> +#define	IPTOS_DSCP_VA		0xb0
> +
>  /*
>   * In RFC 2474, Section 4.2.2.1, the Class Selector Codepoints subsume
>   * the old ToS Precedence values.

This matches the FreeBSD definition, and it follows the style of the
surrounding code (although it's not GNU style).  I've pushed it.

Thanks,
Florian
  

Patch

diff --git a/sysdeps/generic/netinet/ip.h b/sysdeps/generic/netinet/ip.h
index 32236dc1ce53..6bdb31b65e99 100644
--- a/sysdeps/generic/netinet/ip.h
+++ b/sysdeps/generic/netinet/ip.h
@@ -186,6 +186,11 @@  struct ip_timestamp
 #define	IPTOS_DSCP_AF43		0x98
 #define	IPTOS_DSCP_EF		0xb8
 
+/*
+ * Voice-Admit DSCP code point from RFC-5865, Section 4.
+ */
+#define	IPTOS_DSCP_VA		0xb0
+
 /*
  * In RFC 2474, Section 4.2.2.1, the Class Selector Codepoints subsume
  * the old ToS Precedence values.