def nlmsg_alloc_simple(nlmsgtype, flags):
nlh = libnl.linux_private.netlink.nlmsghdr(nlmsg_type=nlmsgtype, nlmsg_flags=flags)<EOL>msg = nlmsg_inherit(nlh)<EOL>_LOGGER.debug('<STR_LIT>', id(msg))<EOL>return msg<EOL>
Allocate a new Netlink message.

    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/msg.c#L346

    Positional arguments:
    nlmsgtype -- Netlink message type (integer).
    flags -- message flags (integer).

    Returns:
    Newly allocated Netlink message (nl_msg class instance) or None.