08c3a6
commit bc6fba3c8048b11c9f73db03339c97a2fec3f0cf
08c3a6
Author: Joseph Myers <joseph@codesourcery.com>
08c3a6
Date:   Wed Nov 17 14:25:16 2021 +0000
08c3a6
08c3a6
    Add PF_MCTP, AF_MCTP from Linux 5.15 to bits/socket.h
08c3a6
    
08c3a6
    Linux 5.15 adds a new address / protocol family PF_MCTP / AF_MCTP; add
08c3a6
    these constants to bits/socket.h.
08c3a6
    
08c3a6
    Tested for x86_64.
08c3a6
    
08c3a6
    (cherry picked from commit bdeb7a8fa9989d18dab6310753d04d908125dc1d)
08c3a6
08c3a6
diff --git a/sysdeps/unix/sysv/linux/bits/socket.h b/sysdeps/unix/sysv/linux/bits/socket.h
08c3a6
index a011a8c0959b9970..7bb9e863d7329da9 100644
08c3a6
--- a/sysdeps/unix/sysv/linux/bits/socket.h
08c3a6
+++ b/sysdeps/unix/sysv/linux/bits/socket.h
08c3a6
@@ -86,7 +86,8 @@ typedef __socklen_t socklen_t;
08c3a6
 #define PF_QIPCRTR	42	/* Qualcomm IPC Router.  */
08c3a6
 #define PF_SMC		43	/* SMC sockets.  */
08c3a6
 #define PF_XDP		44	/* XDP sockets.  */
08c3a6
-#define PF_MAX		45	/* For now..  */
08c3a6
+#define PF_MCTP		45	/* Management component transport protocol.  */
08c3a6
+#define PF_MAX		46	/* For now..  */
08c3a6
 
08c3a6
 /* Address families.  */
08c3a6
 #define AF_UNSPEC	PF_UNSPEC
08c3a6
@@ -137,6 +138,7 @@ typedef __socklen_t socklen_t;
08c3a6
 #define AF_QIPCRTR	PF_QIPCRTR
08c3a6
 #define AF_SMC		PF_SMC
08c3a6
 #define AF_XDP		PF_XDP
08c3a6
+#define AF_MCTP		PF_MCTP
08c3a6
 #define AF_MAX		PF_MAX
08c3a6
 
08c3a6
 /* Socket level values.  Others are defined in the appropriate headers.