https://github.com/thom311/libnl/blob/libnl3_2_25/lib/genl/mngt.c#L85.

    Positional arguments:
    ops -- nl_cache_ops class instance.
    who -- sockaddr_nl class instance.
    nlh -- nlmsghdr class instance.
    pp -- nl_parser_param class instance.

    Returns:
    Integer, cmd_msg_parser() output.

def genl_msg_parser(ops, who, nlh, pp):
    """https://github.com/thom311/libnl/blob/libnl3_2_25/lib/genl/mngt.c#L85.

    Positional arguments:
    ops -- nl_cache_ops class instance.
    who -- sockaddr_nl class instance.
    nlh -- nlmsghdr class instance.
    pp -- nl_parser_param class instance.

    Returns:
    Integer, cmd_msg_parser() output.
    """
    if ops.co_genl is None:
        raise BUG
    return int(cmd_msg_parser(who, nlh, ops.co_genl, ops, pp))