]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
include: update kernel headers from v6.16-rc7
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 27 Jul 2025 20:42:43 +0000 (05:42 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Sun, 27 Jul 2025 22:50:06 +0000 (23:50 +0100)
- netfilter changes in v6.16-rc1 were reverted,
- vm_sockets.h now includes sys/socket.h, hence our workaround is not
  necessary anymore.

src/include/uapi/linux/netfilter/nf_tables.h
src/include/uapi/linux/netfilter/nfnetlink.h
src/include/uapi/linux/update.sh
src/include/uapi/linux/vm_sockets.h

index 518ba144544ce17b5eba4c60b42dc16859a38546..2beb30be2c5f8e7452cb270daf3a3213abe4c2cf 100644 (file)
@@ -142,8 +142,6 @@ enum nf_tables_msg_types {
        NFT_MSG_DESTROYOBJ,
        NFT_MSG_DESTROYFLOWTABLE,
        NFT_MSG_GETSETELEM_RESET,
-       NFT_MSG_NEWDEV,
-       NFT_MSG_DELDEV,
        NFT_MSG_MAX,
 };
 
@@ -1786,18 +1784,10 @@ enum nft_synproxy_attributes {
  * enum nft_device_attributes - nf_tables device netlink attributes
  *
  * @NFTA_DEVICE_NAME: name of this device (NLA_STRING)
- * @NFTA_DEVICE_TABLE: table containing the flowtable or chain hooking into the device (NLA_STRING)
- * @NFTA_DEVICE_FLOWTABLE: flowtable hooking into the device (NLA_STRING)
- * @NFTA_DEVICE_CHAIN: chain hooking into the device (NLA_STRING)
- * @NFTA_DEVICE_SPEC: hook spec matching the device (NLA_STRING)
  */
 enum nft_devices_attributes {
        NFTA_DEVICE_UNSPEC,
        NFTA_DEVICE_NAME,
-       NFTA_DEVICE_TABLE,
-       NFTA_DEVICE_FLOWTABLE,
-       NFTA_DEVICE_CHAIN,
-       NFTA_DEVICE_SPEC,
        __NFTA_DEVICE_MAX
 };
 #define NFTA_DEVICE_MAX                (__NFTA_DEVICE_MAX - 1)
index 88c3c5c73d00b1ef21e224789f322f294eaa20e9..b89a3e61b22112cdba553c70c2eb8b480ce90ca1 100644 (file)
@@ -25,8 +25,6 @@ enum nfnetlink_groups {
 #define NFNLGRP_ACCT_QUOTA             NFNLGRP_ACCT_QUOTA
        NFNLGRP_NFTRACE,
 #define NFNLGRP_NFTRACE                        NFNLGRP_NFTRACE
-       NFNLGRP_NFT_DEV,
-#define NFNLGRP_NFT_DEV                        NFNLGRP_NFT_DEV
        __NFNLGRP_MAX,
 };
 #define NFNLGRP_MAX    (__NFNLGRP_MAX - 1)
index 8976a185c80a2af0e288e0f43ddbe98c25b0d7f7..31dcddaf95df666f66ae60cd6bcefbfa1dd59be6 100755 (executable)
@@ -29,9 +29,5 @@ for i in *.h */*.h; do
             # add casts in ethtool_cmd_speed()
             sed -r -i '/return (ep->speed_hi << 16) | ep->speed;/ s/return .*;/return ((__u32) ep->speed_hi << 16) | (__u32) ep->speed;/' "$i"
             ;;
-        vm_sockets.h)
-            # the header requires struct sockaddr declared
-            sed -r -i '/#define _VM_SOCKETS_H/a \\n#include <sys/socket.h>' "$i"
-            ;;
     esac
 done
index 2579fef57215e354444ee343210e39594c5bfb62..e401160e5000aadf1e1a126d142d30c05a94bef4 100644 (file)
@@ -17,7 +17,7 @@
 #ifndef _VM_SOCKETS_H
 #define _VM_SOCKETS_H
 
-#include <sys/socket.h>
+#include <sys/socket.h>        /* for struct sockaddr and sa_family_t */
 
 #include <linux/socket.h>
 #include <linux/types.h>