netlink: support NLMSG_ERROR message in genl
This resolves the following log message after L2TP tunnel or session is created: ``` sd-netlink: ignored message with unknown type: 2 ```
This commit is contained in:
parent
d053d08a37
commit
0aa2fe6f9b
|
@ -862,6 +862,7 @@ const NLTypeSystem genl_family_type_system_root = {
|
|||
};
|
||||
|
||||
static const NLType genl_types[] = {
|
||||
[NLMSG_ERROR] = { .type = NETLINK_TYPE_NESTED, .type_system = &empty_type_system, .size = sizeof(struct nlmsgerr) },
|
||||
[GENL_ID_CTRL] = { .type = NETLINK_TYPE_NESTED, .type_system = &genl_get_family_type_system, .size = sizeof(struct genlmsghdr) },
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue