def nlmsg_valid_hdr(nlh, hdrlen):
return not nlh.nlmsg_len < nlmsg_msg_size(hdrlen)<EOL>
https://github.com/thom311/libnl/blob/libnl3_2_25/lib/msg.c#L166.

    Positional arguments:
    nlh -- Netlink message header (nlmsghdr class instance).
    hdrlen -- integer.

    Returns True if valid, False otherwise.