From 771c6be31a7b3811538cf7afaf3eedf23ac2095d Mon Sep 17 00:00:00 2001 From: JingPiao Chen Date: Fri, 9 Jun 2017 17:47:49 +0800 Subject: [PATCH] netlink: add decoding of NETLINK_CRYPTO message types * xlat/nl_crypto_types.in: New file. * netlink.c: Include "xlat/nl_crypto_types.h". (nlmsg_types): Add NETLINK_CRYPTO. --- netlink.c | 2 ++ xlat/nl_crypto_types.in | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 xlat/nl_crypto_types.in diff --git a/netlink.c b/netlink.c index d09724f1..e489a6eb 100644 --- a/netlink.c +++ b/netlink.c @@ -38,6 +38,7 @@ #include "xlat/netlink_protocols.h" #include "xlat/netlink_types.h" #include "xlat/nl_audit_types.h" +#include "xlat/nl_crypto_types.h" #include "xlat/nl_netfilter_msg_types.h" #include "xlat/nl_netfilter_subsys_ids.h" #include "xlat/nl_route_types.h" @@ -150,6 +151,7 @@ static const struct { const char *const dflt; } nlmsg_types[] = { [NETLINK_AUDIT] = { NULL, nl_audit_types, "AUDIT_???" }, + [NETLINK_CRYPTO] = { NULL, nl_crypto_types, "CRYPTO_MSG_???" }, [NETLINK_GENERIC] = { decode_nlmsg_type_generic, NULL, diff --git a/xlat/nl_crypto_types.in b/xlat/nl_crypto_types.in new file mode 100644 index 00000000..021f85fc --- /dev/null +++ b/xlat/nl_crypto_types.in @@ -0,0 +1,5 @@ +CRYPTO_MSG_NEWALG 0x10 +CRYPTO_MSG_DELALG 0x11 +CRYPTO_MSG_UPDATEALG 0x12 +CRYPTO_MSG_GETALG 0x13 +CRYPTO_MSG_DELRNG 0x14