From c22c6600ea5172145e20d546d9856421eaee0527 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 13 Nov 2024 13:40:58 +0100 Subject: pkg/compiler: add consts to all files that mention them We already do this in most cases except for template structs (nlattr notably). Add consts that are used in template structs to all files that use them. This helps to avoid flakiness, and allows to replace descriptions files with other descriptions files without regenerating all const files. This also fixes check for presence of descriptions for sys/linux/auto.txt.json. --- sys/linux/socket_netlink_generic_wireguard.txt.const | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/linux/socket_netlink_generic_wireguard.txt.const') diff --git a/sys/linux/socket_netlink_generic_wireguard.txt.const b/sys/linux/socket_netlink_generic_wireguard.txt.const index d5bee5b78..86d216923 100644 --- a/sys/linux/socket_netlink_generic_wireguard.txt.const +++ b/sys/linux/socket_netlink_generic_wireguard.txt.const @@ -5,6 +5,7 @@ AF_INET6 = 10 COOKIE_LEN = 16 COOKIE_NONCE_LEN = 24 IFNAMSIZ = 16 +IFREQ_SIZE = ??? MESSAGE_DATA = 4 MESSAGE_HANDSHAKE_COOKIE = 3 MESSAGE_HANDSHAKE_INITIATION = 1 @@ -22,8 +23,10 @@ WGALLOWEDIP_A_CIDR_MASK = 3 WGALLOWEDIP_A_FAMILY = 1 WGALLOWEDIP_A_IPADDR = 2 WGDEVICE_A_FLAGS = 5 +WGDEVICE_A_FWMARK = 7 WGDEVICE_A_IFINDEX = 1 WGDEVICE_A_IFNAME = 2 +WGDEVICE_A_LISTEN_PORT = 6 WGDEVICE_A_PEERS = 8 WGDEVICE_A_PRIVATE_KEY = 3 WGDEVICE_F_REPLACE_PEERS = 1 @@ -37,6 +40,8 @@ WGPEER_A_PUBLIC_KEY = 1 WGPEER_F_REMOVE_ME = 1 WGPEER_F_REPLACE_ALLOWEDIPS = 2 WGPEER_F_UPDATE_ONLY = 4 +WG_CMD_GET_DEVICE = 0 +WG_CMD_SET_DEVICE = 1 __NR_ioctl = 54, amd64:16, arm64:riscv64:29, mips64le:5015 __NR_sendmsg = 211, 386:s390x:370, amd64:46, arm:296, mips64le:5045, ppc64le:341 __NR_setsockopt = 208, 386:s390x:366, amd64:54, arm:294, mips64le:5053, ppc64le:339 -- cgit mrf-deployment