netlink: Add functions for handling nested attributes.