On Sun, Sep 29, 2024 at 10:42:44AM +0000, Danielle Ratson wrote: > Hi, > > Is there a plan to build a new version soon? > I am asking since I am planning to use this function in ethtool. ASAP > Thanks, > Danielle > > > -----Original Message----- > > From: Phil Sutter <phil@xxxxxx> > > Sent: Wednesday, 31 July 2024 10:15 > > To: Danielle Ratson <danieller@xxxxxxxxxx> > > Cc: netfilter-devel@xxxxxxxxxxxxxxx; pablo@xxxxxxxxxxxxx; fw@xxxxxxxxx; mlxsw > > <mlxsw@xxxxxxxxxx> > > Subject: Re: [PATCH libmnl] src: attr: Add mnl_attr_get_uint() function > > > > On Wed, Jul 31, 2024 at 09:35:51AM +0300, Danielle Ratson wrote: > > > NLA_UINT attributes have a 4-byte payload if possible, and an 8-byte > > > one if necessary. > > > > > > There are some NLA_UINT attributes that lack an appropriate getter > > function. > > > > > > Add a function mnl_attr_get_uint() to cover that extract these. Since > > > we need to dispatch on length anyway, make the getter truly universal > > > by supporting also u8 and u16. > > > > > > Signed-off-by: Danielle Ratson <danieller@xxxxxxxxxx> > > > > Patch applied, thanks!