lkml.org 
[lkml]   [2019]   [Apr]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH net-next 0/3] make nla_nest_start() add NLA_F_NESTED flag
From
Date
On Fri, 2019-04-26 at 09:13 +0000, Michal Kubecek wrote:

> Another observation was that even if NLA_F_NESTED flag was introduced in
> 2007, only few netlink based interfaces set it in kernel generated messages
> and even many recently added APIs omit it. That is unfortunate as without
> the flag, message parsers not familiar with attribute semantics cannot
> recognize nested attributes and do not see message structure; this affects
> e.g. wireshark dissector or mnl_nlmsg_fprintf() from libmnl.

Indeed.

I wonder if we should also (start) enforcing that the userspace sender
side sets this, if the policy is strict?

johannes

\
 
 \ /
  Last update: 2019-04-26 11:25    [W:0.998 / U:0.860 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site