Add SOL_MPTCP, SOL_MCTP from Linux 5.16 to bits/socket.h

Message ID alpine.DEB.2.22.394.2202180111220.46647@digraph.polyomino.org.uk
State Committed
Commit fdc1ae67fef27eea1445bab4bdfe2f0fb3bc7aa1
Delegated to: Adhemerval Zanella Netto
Headers
Series Add SOL_MPTCP, SOL_MCTP from Linux 5.16 to bits/socket.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 Feb. 18, 2022, 1:12 a.m. UTC
  Linux 5.16 adds constants SOL_MPTCP and SOL_MCTP to the getsockopt /
setsockopt levels; add these constants to bits/socket.h.

Tested for x86_64.
  

Comments

Adhemerval Zanella Netto Feb. 21, 2022, 6:05 p.m. UTC | #1
On 17/02/2022 22:12, Joseph Myers wrote:
> Linux 5.16 adds constants SOL_MPTCP and SOL_MCTP to the getsockopt /
> setsockopt levels; add these constants to bits/socket.h.
> 
> Tested for x86_64.
> 

LGTM, thanks.

> diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
> index 79da9e7597..88fce77349 100644
> --- a/sysdeps/unix/sysv/linux/bits/socket.h
> +++ b/sysdeps/unix/sysv/linux/bits/socket.h
> @@ -169,6 +169,8 @@ typedef __socklen_t socklen_t;
>  #define SOL_KCM		281
>  #define SOL_TLS		282
>  #define SOL_XDP		283
> +#define SOL_MPTCP	284
> +#define SOL_MCTP	285
>  
>  /* Maximum queue length specifiable by listen.  */
>  #define SOMAXCONN	4096
>
  

Patch

diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
index 79da9e7597..88fce77349 100644
--- a/sysdeps/unix/sysv/linux/bits/socket.h
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
@@ -169,6 +169,8 @@  typedef __socklen_t socklen_t;
 #define SOL_KCM		281
 #define SOL_TLS		282
 #define SOL_XDP		283
+#define SOL_MPTCP	284
+#define SOL_MCTP	285
 
 /* Maximum queue length specifiable by listen.  */
 #define SOMAXCONN	4096