code: def nlmsg_ok(nlh, remaining):
      
      sizeof = libnl.linux_private.netlink.nlmsghdr.SIZEOF
      return remaining.value >= sizeof and sizeof <= nlh.nlmsg_len <= remaining.value
docs: Check if the Netlink message fits into the remaining bytes.
  
      https://github.com/thom311/libnl/blob/libnl3_2_25/lib/msg.c#L179
  
      Positional arguments:
      nlh -- Netlink message header (nlmsghdr class instance).
      remaining -- number of bytes remaining in message stream (c_int).
  
      Returns:
      Boolean.