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-next>] [day] [month] [year] [list]
Message-ID: <YwWY8ux/PyMWQBWr@Laptop-X1>
Date:   Wed, 24 Aug 2022 11:20:18 +0800
From:   Hangbin Liu <liuhangbin@...il.com>
To:     netdev@...r.kernel.org
Cc:     Dmitry Safonov <0x7f454c46@...il.com>,
        Florian Westphal <fw@...len.de>,
        Arkadi Sharshevsky <arkadis@...lanox.com>
Subject: [Question] Should NLMSG_DONE has flag NLM_F_MULTI?

Hi,

When checking the NLMSG_DONE message in kernel, I saw lot of functions would
set NLM_F_MULTI flag. e.g. netlink_dump_done(),
devlink_dpipe_{tables, entries, headers}_fill().

But from rfc3549[1]:

   [...] For multipart
   messages, the first and all following headers have the NLM_F_MULTI
   Netlink header flag set, except for the last header which has the
   Netlink header type NLMSG_DONE.

What I understand is the last nlmsghdr(NLMSG_DONE message) doesn't need to
have NLM_F_MULTI flag. Am I missing something?

[1] https://www.rfc-editor.org/rfc/rfc3549.html#section-2.3.2

Thanks
Hangbin

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ