[PATCH 3/4] netlink: add decoding of NETLINK_CRYPTO nlmsg_flags

JingPiao Chen chenjingpiao at gmail.com
Sun Jul 9 14:48:29 UTC 2017


* netlink.c (decode_nlmsg_flags): Add NETLINK_CRYPTO.
---
 netlink.c | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/netlink.c b/netlink.c
index e489a6e..0ae9a46 100644
--- a/netlink.c
+++ b/netlink.c
@@ -200,6 +200,16 @@ decode_nlmsg_flags(const uint16_t flags, const uint16_t type, const int family)
 		goto end;
 
 	switch (family) {
+	case NETLINK_CRYPTO:
+		switch (type) {
+		case CRYPTO_MSG_NEWALG:
+			table = netlink_new_flags;
+			break;
+		case CRYPTO_MSG_GETALG:
+			table = netlink_get_flags;
+			break;
+		}
+		break;
 	case NETLINK_SOCK_DIAG:
 		table = netlink_get_flags;
 		break;
-- 
2.7.4





More information about the Strace-devel mailing list