]> www.infradead.org Git - users/hch/misc.git/commitdiff
tools headers: Update the socket headers with the kernel sources
authorNamhyung Kim <namhyung@kernel.org>
Thu, 10 Apr 2025 00:11:17 +0000 (17:11 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Thu, 10 Apr 2025 16:28:24 +0000 (09:28 -0700)
To pick up the changes in:

  64e844505bc08cde include: uapi: protocol number and packet structs for AGGFRAG in ESP
  18912c520674ec4d tcp: devmem: don't write truncated dmabuf CMSGs to userspace

Addressing this perf tools build warning:

  Warning: Kernel ABI header differences:
    diff -u tools/include/uapi/linux/in.h include/uapi/linux/in.h
    diff -u tools/perf/trace/beauty/include/linux/socket.h include/linux/socket.h

Please see tools/include/uapi/README for further details.

Acked-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20250410001125.391820-3-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/include/uapi/linux/in.h
tools/perf/trace/beauty/include/linux/socket.h

index 5d32d53508d99f8631fad6e3172dc6e9ae5e7424..ced0fc3c3aa5343ad4a62afde46924f8d2665775 100644 (file)
@@ -79,6 +79,8 @@ enum {
 #define IPPROTO_MPLS           IPPROTO_MPLS
   IPPROTO_ETHERNET = 143,      /* Ethernet-within-IPv6 Encapsulation   */
 #define IPPROTO_ETHERNET       IPPROTO_ETHERNET
+  IPPROTO_AGGFRAG = 144,       /* AGGFRAG in ESP (RFC 9347)            */
+#define IPPROTO_AGGFRAG                IPPROTO_AGGFRAG
   IPPROTO_RAW = 255,           /* Raw IP packets                       */
 #define IPPROTO_RAW            IPPROTO_RAW
   IPPROTO_SMC = 256,           /* Shared Memory Communications         */
index d18cc47e89bd0164ec8de7702c266a406a2c4647..c3322eb3d6865d5ef90ea7891d2aa98d3efe4f6d 100644 (file)
@@ -392,6 +392,8 @@ struct ucred {
 
 extern int move_addr_to_kernel(void __user *uaddr, int ulen, struct sockaddr_storage *kaddr);
 extern int put_cmsg(struct msghdr*, int level, int type, int len, void *data);
+extern int put_cmsg_notrunc(struct msghdr *msg, int level, int type, int len,
+                           void *data);
 
 struct timespec64;
 struct __kernel_timespec;