]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: introduce sd_netlink_ignore_serial()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 2 Dec 2025 14:02:50 +0000 (23:02 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Dec 2025 23:24:28 +0000 (08:24 +0900)
commit991703009ebe994d9513416398d0c6ea3d14bfef
tree12bc29a73b6ae0a60c59f07c50817f8c6c96a8aa
parent32682ba02d588cebedf5cd42a8074a9830cf9041
sd-netlink: introduce sd_netlink_ignore_serial()

When we send a message with NLM_F_ACK, but if later we are not
interested in the reply and do not want to call sd_netlink_read(),
the reply will be stored in the rqueue forever.

Let's introduce a way to ignore received message without waiting reply.
src/libsystemd/sd-netlink/netlink-internal.h
src/libsystemd/sd-netlink/netlink-socket.c
src/libsystemd/sd-netlink/sd-netlink.c
src/systemd/sd-netlink.h