]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virarptable: Properly calculate rtattr length
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 16 Aug 2024 11:56:51 +0000 (13:56 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 19 Aug 2024 10:12:16 +0000 (12:12 +0200)
commite7530769e879199fc6003a8a44da3a441d40c461
tree4c0fa36acc938dfda3805e6b8422a8d98f5ed327
parent271940223c2914bf63cbec00930ce46d6eef30ba
virarptable: Properly calculate rtattr length

Use convenience macro which does almost the same thing we were doing,
but also pads out the payload length to a multiple of NLMSG_ALIGNTO (4)
bytes.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/util/virarptable.c