From 46818f406413bc212493f4835d957634331df9c8 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Thu, 14 Nov 2019 10:00:41 -0600 Subject: [PATCH] include/netpacket/netlink.h: NETLINK_CRYPTO messages numbers must no overlap NETLINK_ROUTE message numbers. --- include/netpacket/netlink.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/include/netpacket/netlink.h b/include/netpacket/netlink.h index a65da9a59d4..896291edf74 100644 --- a/include/netpacket/netlink.h +++ b/include/netpacket/netlink.h @@ -283,6 +283,8 @@ #define RTM_GETNEIGHTBL 33 #define RTM_SETNEIGHTBL 34 +#define RTM_LASTMSG 34 + /* Definitions for struct ifaddrmsg ****************************************/ /* ifa_flags definitions: ifa_flags is a flag word of IFA_F_SECONDARY for @@ -350,12 +352,14 @@ /* NETLINK_CRYPTO protocol message types ************************************/ -#define CRYPTO_MSG_NEWALG 1 -#define CRYPTO_MSG_DELALG 2 -#define CRYPTO_MSG_UPDATEALG 3 -#define CRYPTO_MSG_GETALG 4 -#define CRYPTO_MSG_DELRNG 5 -#define CRYPTO_MSG_GETSTAT 6 +#define CRYPTO_MSG_NEWALG (RTM_LASTMSG + 1) +#define CRYPTO_MSG_DELALG (RTM_LASTMSG + 2) +#define CRYPTO_MSG_UPDATEALG (RTM_LASTMSG + 3) +#define CRYPTO_MSG_GETALG (RTM_LASTMSG + 4) +#define CRYPTO_MSG_DELRNG (RTM_LASTMSG + 5) +#define CRYPTO_MSG_GETSTAT (RTM_LASTMSG + 6) + +#define CRYPTO_MSG_LAST (RTM_LASTMSG + 6) /* Netlink message attributes. */