Thread (38 messages) 38 messages, 7 authors, 2025-08-26

Re: [PATCH net-next v2 01/15] net: define IPPROTO_QUIC and SOL_QUIC constants

flat view

From: Namjae Jeon <linkinjeon@kernel.org>
Date: 2025-08-19 08:10:54
Also in: linux-cifs

On Mon, Aug 18, 2025 at 11:31 PM Stefan Metzmacher [off-list ref] wrote:
Hi,
quoted
diff --git a/include/linux/socket.h b/include/linux/socket.h
index 3b262487ec06..a7c05b064583 100644
--- a/include/linux/socket.h
+++ b/include/linux/socket.h
@@ -386,6 +386,7 @@ struct ucred {
  #define SOL_MCTP    285
  #define SOL_SMC             286
  #define SOL_VSOCK   287
+#define SOL_QUIC     288

  /* IPX options */
  #define IPX_TYPE    1
diff --git a/include/uapi/linux/in.h b/include/uapi/linux/in.h
index ced0fc3c3aa5..34becd90d3a6 100644
--- a/include/uapi/linux/in.h
+++ b/include/uapi/linux/in.h
@@ -85,6 +85,8 @@ enum {
  #define IPPROTO_RAW         IPPROTO_RAW
    IPPROTO_SMC = 256,                /* Shared Memory Communications         */
  #define IPPROTO_SMC         IPPROTO_SMC
+  IPPROTO_QUIC = 261,                /* A UDP-Based Multiplexed and Secure Transport */
+#define IPPROTO_QUIC         IPPROTO_QUIC
    IPPROTO_MPTCP = 262,              /* Multipath TCP connection             */
  #define IPPROTO_MPTCP               IPPROTO_MPTCP
    IPPROTO_MAX
Can these constants be accepted, soon?

Samba 4.23.0 to be released early September will ship userspace code to
use them. It would be good to have them correct when kernel's start to
support this...
I'd like to test ksmbd with smbclient of samba, which includes quic support.
Which Samba branch should I use? How do I enable quic in Samba?
Do I need to update smb.conf?

Thanks.
It would also mean less risk for conflicting projects with the need for such numbers.

I think it's useful to use a value lower than IPPROTO_MAX, because it means
the kernel module can also be build against older kernels as out of tree module
and still it would be transparent for userspace consumers like samba.
There are hardcoded checks for IPPROTO_MAX in inet_create, inet6_create, inet_diag_register
and the value of IPPROTO_MAX is 263 starting with commit
d25a92ccae6bed02327b63d138e12e7806830f78 in 6.11.

Thanks!
metze
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help