summaryrefslogtreecommitdiff
path: root/include/arch/x86_64/linux/ip_vs.h
diff options
context:
space:
mode:
authorKacper <kacper@mail.openlinux.dev>2025-12-25 19:24:38 +0100
committerKacper <kacper@mail.openlinux.dev>2025-12-25 20:35:03 +0100
commita984eb367c032dbe2577f01238c3d1268526be70 (patch)
tree437fef40379b2758b129ccea39df3570fa2d145e /include/arch/x86_64/linux/ip_vs.h
parent8834571b202cf4dc9c649cfb096c213b6ecf1566 (diff)
Clang-tidy fixes
Diffstat (limited to 'include/arch/x86_64/linux/ip_vs.h')
-rw-r--r--include/arch/x86_64/linux/ip_vs.h15
1 files changed, 5 insertions, 10 deletions
diff --git a/include/arch/x86_64/linux/ip_vs.h b/include/arch/x86_64/linux/ip_vs.h
index c46511c8..58dbe574 100644
--- a/include/arch/x86_64/linux/ip_vs.h
+++ b/include/arch/x86_64/linux/ip_vs.h
@@ -10,8 +10,7 @@
#include <linux/types.h> /* For __beXX types in userland */
#define IP_VS_VERSION_CODE 0x010201
-#define NVERSION(version) \
- (version >> 16) & 0xFF, (version >> 8) & 0xFF, version & 0xFF
+#define NVERSION(version) (version >> 16) & 0xFF, (version >> 8) & 0xFF, version & 0xFF
/*
* Virtual Service Flags
@@ -94,22 +93,18 @@
#define IP_VS_CONN_F_ONE_PACKET 0x2000 /* forward only one packet */
/* Initial bits allowed in backup server */
-#define IP_VS_CONN_F_BACKUP_MASK \
- (IP_VS_CONN_F_FWD_MASK | IP_VS_CONN_F_NOOUTPUT | \
- IP_VS_CONN_F_INACTIVE | IP_VS_CONN_F_SEQ_MASK | \
+#define IP_VS_CONN_F_BACKUP_MASK \
+ (IP_VS_CONN_F_FWD_MASK | IP_VS_CONN_F_NOOUTPUT | IP_VS_CONN_F_INACTIVE | IP_VS_CONN_F_SEQ_MASK | \
IP_VS_CONN_F_NO_CPORT | IP_VS_CONN_F_TEMPLATE)
/* Bits allowed to update in backup server */
-#define IP_VS_CONN_F_BACKUP_UPD_MASK \
- (IP_VS_CONN_F_INACTIVE | IP_VS_CONN_F_SEQ_MASK)
+#define IP_VS_CONN_F_BACKUP_UPD_MASK (IP_VS_CONN_F_INACTIVE | IP_VS_CONN_F_SEQ_MASK)
/* Flags that are not sent to backup server start from bit 16 */
#define IP_VS_CONN_F_NFCT (1 << 16) /* use netfilter conntrack */
/* Connection flags from destination that can be changed by user space */
-#define IP_VS_CONN_F_DEST_MASK \
- (IP_VS_CONN_F_FWD_MASK | IP_VS_CONN_F_ONE_PACKET | IP_VS_CONN_F_NFCT | \
- 0)
+#define IP_VS_CONN_F_DEST_MASK (IP_VS_CONN_F_FWD_MASK | IP_VS_CONN_F_ONE_PACKET | IP_VS_CONN_F_NFCT | 0)
#define IP_VS_SCHEDNAME_MAXLEN 16
#define IP_VS_PENAME_MAXLEN 16