[PATCH v2 5/8] netlink: add decoding of NETLINK_CRYPTO message types

JingPiao Chen chenjingpiao at gmail.com
Tue Jul 11 02:50:12 UTC 2017


* 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 d09724f..e489a6e 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 0000000..021f85f
--- /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
-- 
2.7.4





More information about the Strace-devel mailing list