Re: [PATCH v6 2/3] rust: netlink: add raw netlink abstraction
From: Jakub Kicinski
Date: Tue Jun 02 2026 - 16:06:01 EST
On Fri, 29 May 2026 13:28:39 +0000 Alice Ryhl wrote:
> This implements a safe and relatively simple API over the netlink API,
> that allows you to add different attributes to a netlink message and
> broadcast it. As the first user of this API only makes use of broadcast,
> only broadcast messages are supported here.
>
> This API is intended to be safe and to be easy to use in *generated*
> code. This is because netlink is generally used with yaml files that
> describe the underlying API, and the python generator outputs C code
> (or, soon, Rust code) that lets you use the API more easily. So for
> example, if there is a string field, the code generator will output a
> method that internall calls `put_string()` with the right attr type.
Acked-by: Jakub Kicinski <kuba@xxxxxxxxxx>