> On Fri, 20 Jan 2023 18:16:54 +0100 Lorenzo Bianconi wrote: > > +static int libbpf_netlink_resolve_genl_family_id(const char *name, > > + __u16 len, __u16 *id) > > +{ > > + struct libbpf_nla_req req = { > > + .nh.nlmsg_len = NLMSG_LENGTH(GENL_HDRLEN), > > + .nh.nlmsg_type = GENL_ID_CTRL, > > + .nh.nlmsg_flags = NLM_F_REQUEST, > > + .gnl.cmd = CTRL_CMD_GETFAMILY, > > + .gnl.version = 1, > > nlctrl is version 2, shouldn't matter in practice ack, I will fix it. Regards, Lorenzo
Attachment:
signature.asc
Description: PGP signature