Add IP_LOCAL_PORT_RANGE from Linux 6.3 to bits/in.h

Message ID e16248f5-b39b-fc27-8ca7-15f2c171a8a1@codesourcery.com
State Committed
Commit a33c211b117016cab1069f9f1dd9285f0c00a506
Headers
Series Add IP_LOCAL_PORT_RANGE from Linux 6.3 to bits/in.h |

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

Joseph Myers May 17, 2023, 10:32 p.m. UTC
  Linux 6.3 adds a new constant IP_LOCAL_PORT_RANGE.  Add it to the
corresponding bits/in.h in glibc.

Tested for x86_64.
  

Comments

Joseph Myers May 25, 2023, 9:35 p.m. UTC | #1
Ping.  This patch 
<https://sourceware.org/pipermail/libc-alpha/2023-May/148237.html> is 
pending review.
  
Florian Weimer May 26, 2023, 6:48 a.m. UTC | #2
* Joseph Myers:

> Linux 6.3 adds a new constant IP_LOCAL_PORT_RANGE.  Add it to the
> corresponding bits/in.h in glibc.
>
> Tested for x86_64.
>
> diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
> index 9f6f0f182e..6bf2fded21 100644
> --- a/sysdeps/unix/sysv/linux/bits/in.h
> +++ b/sysdeps/unix/sysv/linux/bits/in.h
> @@ -128,6 +128,7 @@
>  #define IP_MSFILTER			41
>  #define IP_MULTICAST_ALL		49
>  #define IP_UNICAST_IF			50
> +#define IP_LOCAL_PORT_RANGE		51
>  
>  /* To select the IP level.  */
>  #define SOL_IP	0

Okay.

Thanks,
Florian
  

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/in.h b/sysdeps/unix/sysv/linux/bits/in.h
index 9f6f0f182e..6bf2fded21 100644
--- a/sysdeps/unix/sysv/linux/bits/in.h
+++ b/sysdeps/unix/sysv/linux/bits/in.h
@@ -128,6 +128,7 @@ 
 #define IP_MSFILTER			41
 #define IP_MULTICAST_ALL		49
 #define IP_UNICAST_IF			50
+#define IP_LOCAL_PORT_RANGE		51
 
 /* To select the IP level.  */
 #define SOL_IP	0