]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commit
GuestInfo: Fix NicInfo caching. [1/2]
authorVMware, Inc <>
Tue, 17 Nov 2009 22:08:31 +0000 (14:08 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Tue, 17 Nov 2009 22:08:31 +0000 (14:08 -0800)
commitcfede898c8aeb3ab4bef024d5a4b8081e289f0d9
tree576b77bab3244da540f8f8a2a10f135c1e20df99
parent0cffe897d51ebb1d1d9afeae4741b48bbf6e9158
GuestInfo: Fix NicInfo caching. [1/2]

NicInfoV3 introduced considerably more complex XDR types.  Comparing
said types is non-trivial, so this change introduces "isEqual" routines
for each of the new types.

The IsEqual code bodies are similar to some of the existing test code,
and the latter will be refactored to use these soon.

I also have a bunch of unit tests coming in a second change.

Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/lib/guestInfo/Makefile.am
open-vm-tools/lib/guestInfo/compareNicInfo.c [new file with mode: 0644]
open-vm-tools/lib/guestInfo/util.c [new file with mode: 0644]
open-vm-tools/lib/include/guestInfoLib.h
open-vm-tools/services/plugins/guestInfo/guestInfoServer.c