chiark / gitweb /
sd-rtnl: handle empty multi-part message from the kernel
[elogind.git] / src / libsystemd / sd-rtnl / rtnl-types.c
index e21c8986684394cffaf594cdc778b832ba9400c5..bf7278fe449037eeeb5296ce4bffa04b6861ab5d 100644 (file)
@@ -411,6 +411,7 @@ static const NLTypeSystem rtnl_neigh_type_system = {
 };
 
 static const NLType rtnl_types[RTM_MAX + 1] = {
+        [NLMSG_DONE]   = { .type = NLA_META, .size = 0 },
         [NLMSG_ERROR]  = { .type = NLA_META, .size = sizeof(struct nlmsgerr) },
         [RTM_NEWLINK]  = { .type = NLA_NESTED, .type_system = &rtnl_link_type_system, .size = sizeof(struct ifinfomsg) },
         [RTM_DELLINK]  = { .type = NLA_NESTED, .type_system = &rtnl_link_type_system, .size = sizeof(struct ifinfomsg) },