]> granicus.if.org Git - strace/commitdiff
netlink: add decoding of NETLINK_CRYPTO nlmsg_flags
authorJingPiao Chen <chenjingpiao@gmail.com>
Fri, 9 Jun 2017 11:42:30 +0000 (19:42 +0800)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 12 Jul 2017 21:08:03 +0000 (21:08 +0000)
* netlink.c (decode_nlmsg_flags): Add NETLINK_CRYPTO.

netlink.c

index e489a6eb4264b77a6436a1497aec87828677592d..0ae9a46b7f109763974c38f141760d34fab11f29 100644 (file)
--- 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;