]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lib: Document limitation of virDomainInterfaceAddresses
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 12 Jun 2018 11:13:06 +0000 (13:13 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Jun 2018 07:12:59 +0000 (09:12 +0200)
https://bugzilla.redhat.com/show_bug.cgi?id=1588336

This API takes @source argument which tells it where to get
domain IP addresses from. However, not all sources are capable of
providing all the information we report, for instance ARP table
has no notion of IP address prefixes. Document this limitation.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Laine Stump <laine@laine.org>
src/libvirt-domain.c

index dcfc7d4c57824c2eaa24b55f8e12e37d6a2335c9..4a899f31c80509fe71d39054c124d0e058b47e3a 100644 (file)
@@ -11780,6 +11780,10 @@ virDomainFSInfoFree(virDomainFSInfoPtr info)
  * be unreachable. Depending on the route table config of the
  * guest, the returned mac address may be duplicated.
  *
+ * Note that for some @source values some pieces of returned @ifaces
+ * might be unset (e.g. VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP does not
+ * set IP address prefix as ARP table does not have any notion of that).
+ *
  * @ifaces->name and @ifaces->hwaddr are never NULL.
  *
  * The caller *must* free @ifaces when no longer needed. Usual use case