netlink: add decoding of NETLINK_CRYPTO nlmsg_flags

* netlink.c (decode_nlmsg_flags): Add NETLINK_CRYPTO.
This commit is contained in:
JingPiao Chen 2017-06-09 19:42:30 +08:00 committed by Dmitry V. Levin
parent 854a12954f
commit c4d14b4457

View File

@ -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;