lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 21 Jun 2024 16:27:57 +0100
From: Donald Hunter <donald.hunter@...il.com>
To: Jakub Kicinski <kuba@...nel.org>
Cc: Kory Maincent <kory.maincent@...tlin.com>, netdev@...r.kernel.org
Subject: Re: Netlink specs, help dealing with nested array

On Fri, 21 Jun 2024 at 16:19, Jakub Kicinski <kuba@...nel.org> wrote:
>
> On Fri, 21 Jun 2024 16:15:43 +0200 Kory Maincent wrote:
> > Hello Jakub, Donald or other ynl experts,
> >
> > I have an issue dealing with a nested array.
> >
> > Here is my current netlink spec and ethtool patches:
> > https://termbin.com/gbyx
> > https://termbin.com/b325
> >
> > Here is the error I got:
> > https://termbin.com/c7b1
> >
> > I am trying to investigate what goes wrong with ynl but I still don't know.
> > If someone have an idea of what is going wrong with ynl or my specs it would be
> > lovely!
>
> You're (correctly) formatting your data as a basic multi-attr.
> Instead of:
>
> +        name: c33-pse-pw-limit-ranges
> +        name-prefix: ethtool-a-
> +        type: indexed-array
> +        sub-type: nest
> +        nested-attributes: c33-pse-pw-limit
>
> use:
>
> +        name: c33-pse-pw-limit-ranges
> +        name-prefix: ethtool-a-
> +        type: nest
> +        multi-attr: true
> +        nested-attributes: c33-pse-pw-limit

Ah yes, I was "fixing" things in the wrong direction. Sorry for the confusion.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ