diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2022-09-28 14:33:27 +1000 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2022-09-29 12:22:21 +0200 |
commit | 656acdfc26b0a03329db005e41d0aaf789afca29 (patch) | |
tree | b7b5ae1712babf29c36fc2802e7b9b7f9418aff0 /contrib/fedora | |
parent | 40901c54375065c28f402b09126e9e50f80e8dfa (diff) | |
download | passt-656acdfc26b0a03329db005e41d0aaf789afca29.tar passt-656acdfc26b0a03329db005e41d0aaf789afca29.tar.gz passt-656acdfc26b0a03329db005e41d0aaf789afca29.tar.bz2 passt-656acdfc26b0a03329db005e41d0aaf789afca29.tar.lz passt-656acdfc26b0a03329db005e41d0aaf789afca29.tar.xz passt-656acdfc26b0a03329db005e41d0aaf789afca29.tar.zst passt-656acdfc26b0a03329db005e41d0aaf789afca29.zip |
Avoid ugly 'end' members in netlink structures
We use a number of complex structures to format messages to send to
netlink. In some cases we add imaginary 'end' members not because they
actually mean something on the wire, but so that we can use offsetof() on
the member to determine the relevant size.
Adding extra things to the structures for this is kinda nasty. We can use
a different construct with offsetof and sizeof to avoid them. As a bonus
this removes some cppcheck warnings about unused struct members.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/fedora')
0 files changed, 0 insertions, 0 deletions