]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nwfilter: assure virNWFilterSnoop(Eth|Dhcp)Hdr structs don't change size
authorLaine Stump <laine@laine.org>
Mon, 19 Feb 2018 17:56:11 +0000 (12:56 -0500)
committerLaine Stump <laine@laine.org>
Tue, 20 Feb 2018 18:43:21 +0000 (13:43 -0500)
commitf565321b26dfb78c1dc2d6cf5456b9b80f04c7f3
tree0ed0b2a1dfa2ec9b27b94ce89ffba2046bdb7bad
parent75f4813c7da3d86f97bd45ae94297d28fb80f243
nwfilter: assure virNWFilterSnoop(Eth|Dhcp)Hdr structs don't change size

These two objects are used to access fields in actual ethernet packets
captures with libpcap, so it's essential that they don't change size
for any reason. This patch uses gnulib's verify() macro to make sure
their sizes don't change.

Signed-off-by: Laine Stump <laine@laine.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/nwfilter/nwfilter_dhcpsnoop.c